home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / standards / ansi / X3T9 / area05 / 90-005r0.txt < prev    next >
Encoding:
Internet Message Format  |  1992-05-12  |  184.4 KB

  1. Date:  Dec 28, 1989                             X3T9.2/90-005
  2.  
  3. To:  X3T9.2 Committee (SCSI)
  4. From:  George Penokie (IBM)
  5.  
  6. Subject:  16/32 bit P/Q cable stand alone document
  7.  
  8.  
  9. Section 3 Issues
  10.  
  11. -Redefine SCSI address and SCSI ID terms
  12.  
  13.  
  14. Section 4 Issues
  15.  
  16. -Termination of the cable
  17.  
  18.      -The maximum number of devices should be made to be 16 if the
  19.       P cable is used.
  20.  
  21.      -The maximum number of devices should be made to be 32 if the
  22.       P/Q cable is used.
  23.  
  24.      -Disallow B connector devices from connecting to P or P/Q
  25.       type devices.
  26.  
  27. -Add in the Q cable changes.
  28.  
  29.      -Make the Q cable have the same pin positions for data lines as
  30.       the P cable.  This is to make dual porting easier.
  31.  
  32. Section 5 Issues
  33.  
  34. -Some wording changes in section 5.1.2 ARBITRATION Phase are
  35.  required to indicate there are now 32 devices allowed on the bus.
  36.  
  37. -Some changes in section 5.1.5.3 Wide Data Transfer are required
  38.  to indicate there is another cabling option.
  39.  
  40. -Add in the Q cable changes
  41.  
  42. Section 7 Issues
  43.  
  44. -The copy commands segment Descriptor does not have room for a 5
  45.  bit source address and a 5 bit destination address.
  46.  
  47.      -Make a new set of Descriptors to handle a larger number of
  48.       addresses.
  49.      -Make a new ASC and ASCQ to handle unsupported SCSI addresses
  50.      -Remove the new ASC and ASCQ.  Unsupported SCSI addresses should
  51.       be handled like any other parameter type error.
  52.  
  53. -Add into the Inquiry data the 16/32 bit addressing information
  54.  and the ACKB/REQB information.
  55.  
  56. Section 8, 9, 10, 12, 13, 14, 15, and 16 Issues
  57.  
  58. -The Release command and Reserve command do not have room for a 5
  59.  bit third party device ID
  60.  
  61.      -Make 10 byte commands for both the Release and Reserve
  62.       commands
  63.  Section 3 changes recommended to implement a single 68 pin connector
  64.  
  65. 3.1.  Glossary 
  66.  
  67. SCSI address.  The Hexadecimal Representation of the unique
  68. address (0-31) assigned to an SCSI device.  This address would
  69. normally be assigned and set in the SCSI device during system
  70. installation.
  71.  
  72. SCSI ID.  The bit-significant representation of the SCSI address
  73. referring to one of the signal lines DB(31-0).
  74.  
  75. 4. Physical Characteristics
  76.  
  77.   This section contains the physical definition of an alternative
  78. cableing for 16 bit and 32 bit data paths on SCSI-2 devices.  The connectors,
  79. cables, signals, terminators, and bus timing values needed to implement the
  80. interface are covered.
  81.  
  82. 4.1. Physical Description
  83.  
  84.   SCSI devices are daisy-chained together using a common 68-conductor P cable
  85. and, optionally, a 68-conductor Q cable.  Both ends of each cable are
  86. terminated.  All signals are common between all SCSI devices on the P cable.
  87. In systems that employ the wide SCSI option, wide SCSI devices additionally
  88. connect to the Q cable.  Various width SCSI devices may be mixed.
  89.  
  90.   Physical devices with P cable connectors shall connect the low data byte
  91. (DB0-DB7,P) to the P connector.  The high data byte (DB8-DB15,P1) may be
  92. connected to the P connector.
  93.  
  94.   Two driver/receiver alternatives are specified:
  95.   (1) Single-ended drivers and receivers, which allow a maximum cable length
  96. of six meters (primarily for connection within a cabinet).
  97.   (2) Differential drivers and receivers, which allow a maximum cable length
  98. of 25 meters (primarily for connection outside of a cabinet).
  99.  
  100.   The A/B cable and P/Q cable alternatives are mutually exclusive within a
  101. system.  Physical devices with A cable connectors may be attached to P cables.
  102. Physical devices with B cable connectors shall not be attached to P or P/Q
  103. cables.  Physical devices with P and P/Q cable connectors shall not be
  104. attached to A or A/B cables.
  105.  
  106.   The single-ended and differential alternatives are mutually exclusive within
  107. a system.
  108.  
  109.   IMPLEMENTORS NOTE:  Use of single-ended drivers and receivers with the fast
  110.   synchronous data transfer option is not recommended.
  111.  
  112. 4.2. Cable Requirements  
  113.  
  114.   An ideal impedance match with cable terminators implies a cable
  115. characteristic impedance of 132 ohms (singled-ended option) or 122 ohms
  116. (differential option).  The cable characteristic impedance shall be no less
  117. than 90 ohms and no greater than 140 ohms.  It is recommended that the cable
  118. characteristic impedance be greater than 100 ohms for all cable types.  See
  119. 4.2.3 for cable requirements when implementing the fast synchronous data
  120. transfer option.
  121.  
  122.   A minimum conductor size of 0.08042 square mm (28 AWG) should be used to
  123. minimize noise effects and ensure proper distribution of terminator power.
  124.  
  125.   IMPLEMENTORS NOTES:
  126.   (1) To minimize discontinuities and signal reflections, cables of different
  127.   impedances should not be used in the same bus.  Implementations may require
  128.   trade-offs in shielding effectiveness, cable length, the number of loads,
  129.   transfer rates, and cost to achieve satisfactory system operation.
  130.   (2) To minimize discontinuities due to local impedance variation, a flat
  131.   cable should be spaced at least 1.27 mm (0.050 in) from other cables, any
  132.   other conductor, or the cable itself when the cable is folded.
  133.   (3) Regulatory agencies may require use of larger wire size.
  134.  
  135. 4.2.1. Single-Ended Cable
  136.  
  137.   A 68-conductor flat cable or 34-signal twisted-pair cable shall be used for
  138. the P cable and the Q cable if the wide SCSI option is implemented.  The
  139. maximum cumulative cable length shall be 6.0 meters.  If twisted-pair cables
  140. are used, then twisted pairs in the cable shall be wired to physically opposing
  141. contacts in the connector.
  142.  
  143.   A stub length of no more than 0.1 meters is allowed off the mainline
  144. interconnection within any connected equipment or from any connected point.
  145.  
  146.   IMPLEMENTORS NOTE:  Stub clustering should be avoided.  Stubs should be
  147.   spaced at least 0.3 meters apart.
  148.  
  149.   SCSI bus termination shall be at each end of the cable and may be internal
  150. to the SCSI devices that are at the ends of the cable.
  151.  
  152. 4.2.2. Differential Cable
  153.  
  154.   A 68-conductor flat cable or 34-signal twisted-pair cable shall be used for
  155. the P cable and the Q cable if the wide SCSI option is implemented.  The
  156. maximum cumulative cable length shall be 25 meters.  If twisted-pair cables are
  157. used, then twisted pairs in the cable shall be wired to physically opposing
  158. contacts in the connector.
  159.  
  160.   A stub length of no more than 0.2 meters is allowed off the mainline
  161. interconnection within any connected equipment or from any connected point.
  162.  
  163.   SCSI bus termination shall be at each end of the cable and may be internal
  164. to the SCSI devices that are at the ends of the cable.
  165.  
  166.   IMPLEMENTORS NOTE:  The use of twisted pair cable (either twisted-flat or
  167.   discrete wire twisted pairs) is strongly recommended.  Without twisted
  168.   pairs, even at slow data rates and very short distances, crosstalk between
  169.   adjacent signals causes spurious pulses with differential signals.
  170.  
  171. 4.2.3. Cable Requirements for Fast Synchronous Data Transfer
  172.  
  173.   In systems which use the fast synchronous data transfer option (see 4.8),
  174. the P and Q cables should meet the conductor size recommendation in 4.2.  The
  175. cable should have an overall shield suitable for termination in a shielded
  176. connector.
  177.  
  178.   In such systems, the cables shall have the following electrical
  179. characteristics:
  180.      Characteristic Impedance:  90 to 132 ohms
  181.      Signal Attenuation:  0.095 dB maximum per meter at 5 MHz
  182.      Pair-to-Pair Propagation Delay Delta:  0.20 ns maximum per meter
  183.      DC Resistance:  0.230 ohms maximum per meter at 20 degrees C
  184.  
  185.  
  186. 4.3. Connector Requirements
  187.  
  188.   Two types of connectors are defined: nonshielded and shielded.  The
  189. nonshielded connectors are typically used for in-cabinet applications.
  190. Shielded connectors are typically used for external applications where
  191. electromagnetic compatibility (EMC) and electrostatic discharge (ESD)
  192. protection may be required.  Either type of connector may be used with the
  193. single-ended or differential drivers.
  194.  
  195. 4.3.1. Nonshielded Connector Requirements
  196.  
  197.   One nonshielded connector is specified for the P and Q cables.
  198.  
  199. 4.3.1.1. Nonshielded Connector - P Cable and Q Cable 
  200.  
  201.   The nonshielded high-density SCSI device connector for the P and Q cables
  202. (Figure 4-1) shall be a 68-conductor connector consisting of two rows of 34
  203. female contacts with adjacent contacts 1.27 mm (0.05 in) apart.  The nonmating
  204. portion of the connector is shown for reference only.
  205.  
  206.   The nonshielded high-density cable connector for the P and Q cables (Figure
  207. 4-2) shall be a 68-conductor connector consisting of two rows of 34 male
  208. contacts with adjacent contacts 1.27 mm (0.05 in) apart.  The nonmating portion
  209. of the connector is shown for reference only.
  210.  
  211. 4.3.2. Shielded Connector Requirements
  212.  
  213.   One shielded connector is specified for the P and Q cables.  The connector
  214. shielding system should provide a dc resistance of less than 10 milliohms from
  215. the cable shield at its termination point to the SCSI device enclosure.
  216.  
  217.   In order to support daisy-chain connections, SCSI devices that use shielded
  218. connectors should provide two shielded device connectors on the device
  219. enclosure.  These two connectors may be wired "one-to-one" with a stub to the
  220. SCSI device's drivers and receivers provided the maximum stub length is not
  221. violated.  Alternatively, two cables may be run from the two shielded
  222. connectors to the drivers and receivers so that the maximum stub length is not
  223. violated.  The length of the cable within the device enclosure is included
  224. when calculating the total cable length of the SCSI bus.
  225.  
  226. 4.3.2.1. Shielded Connector - P Cable and Q Cable
  227.  
  228.   The shielded high-density SCSI device connector for the P and Q cables
  229. (Figure 4-3) is a 68-conductor connector consisting of two rows of 34 female
  230. contacts with adjacent contacts 1.27 mm (0.05 in) apart.  The nonmating portion
  231. of the connector is shown for reference only.
  232.  
  233.   The shielded high-density cable connector for the P and Q cables (Figure 4-4)
  234. is a 68-conductor connector consisting of two rows of 34 male contacts with
  235. adjacent contacts 1.27 mm (0.05 in) apart.  The nonmating portion of the
  236. connector is shown for reference only.
  237.  
  238.    Figure 4-1: 68-Contact Nonshielded High-Density SCSI Device Connector
  239.                               (P Cable/Q Cable)
  240.  
  241.       Figure 4-2: 68-Contact Nonshielded High-Density Cable Connector
  242.                               (P Cable/Q Cable)
  243.  
  244.     Figure 4-3: 68-Contact Shielded High-density SCSI Device Connector
  245.                               (P Cable/Q Cable)
  246.  
  247.        Figure 4-4: 68-Contact Shielded High-density Cable Connector
  248.                               (P Cable/Q Cable)
  249.  
  250. 4.3.3. Connector Contact Assignments
  251.  
  252.   The connector contact assignments are defined in Tables 4-1 through 4-5.
  253. Table 4-1 defines which of the other four tables to use and which set of
  254. contact assignments to use.
  255.  
  256.     Table 4-1: Cross-Reference to Connector Contact Assignments
  257.  
  258. ==============================================================================
  259.                               Driver/                        Contact
  260.                              Receiver           Connector  Assignment  Contact
  261.     Connector Type             Type      Cable    Figure      Table      Set
  262. ------------------------------------------------------------------------------
  263. Nonshielded Alternative 1  Single-Ended    P    4-1 & 4-2      4-2
  264. Nonshielded Alternative 1  Single-Ended    Q    4-1 & 4-2      4-3
  265. Nonshielded Alternative 1  Differential    P    4-1 & 4-2      4-4
  266. Nonshielded Alternative 1  Differential    Q    4-1 & 4-2      4-5
  267.  
  268. Shielded Alternative 1     Single-Ended    P    4-3 & 4-4      4-2
  269. Shielded Alternative 1     Single-Ended    Q    4-3 & 4-4      4-3
  270. Shielded Alternative 1     Differential    P    4-3 & 4-4      4-4
  271. Shielded Alternative 1     Differential    Q    4-3 & 4-4      4-5
  272. ==============================================================================
  273.  
  274.             Table 4-2: Single-Ended Contact Assignments - P cable
  275.  
  276. ==============================================================================
  277.                     Connector       Cable        Connector
  278.       Signal         Contact      Conductor       Contact        Signal
  279.        Name           Number       Number          Number         Name
  280. ------------------------------------------------------------------------------
  281.       GROUND            1           1 3  2          35           -DB(12)
  282.       GROUND            2           3 3  4          36           -DB(13)
  283.       GROUND            3           5 3  6          37           -DB(14)
  284.       GROUND            4           7 3  8          38           -DB(15)
  285.       GROUND            5           9 3 10          39           -DB(P1)
  286.       GROUND            6          11 3 12          40           -DB(0)
  287.       GROUND            7          13 3 14          41           -DB(1)
  288.       GROUND            8          15 3 16          42           -DB(2)
  289.       GROUND            9          17 3 18          43           -DB(3)
  290.       GROUND           10          19 3 20          44           -DB(4)
  291.       GROUND           11          21 3 22          45           -DB(5)
  292.       GROUND           12          23 3 24          46           -DB(6)
  293.       GROUND           13          25 3 26          47           -DB(7)
  294.       GROUND           14          27 3 28          48           -DB(P)
  295.       GROUND           15          29 3 30          49           GROUND
  296.       GROUND           16          31 3 32          50           GROUND
  297.       TERMPWR          17          33 3 34          51           TERMPWR
  298.       TERMPWR          18          35 3 36          52           TERMPWR
  299.       RESERVED         19          37 3 38          53           RESERVED
  300.       GROUND           20          39 3 40          54           GROUND
  301.       GROUND           21          41 3 42          55           -ATN
  302.       GROUND           22          43 3 44          56           GROUND
  303.       GROUND           23          45 3 46          57           -BSY
  304.       GROUND           24          47 3 48          58           -ACK
  305.       GROUND           25          49 3 50          59           -RST
  306.       GROUND           26          51 3 52          60           -MSG
  307.       GROUND           27          53 3 54          61           -SEL
  308.       GROUND           28          55 3 56          62           -C/D
  309.       GROUND           29          57 3 58          63           -REQ
  310.       GROUND           30          59 3 60          64           -I/O
  311.       GROUND           31          61 3 62          65           -DB(8)
  312.       GROUND           32          63 3 64          66           -DB(9)
  313.       GROUND           33          65 3 66          67           -DB(10)
  314.       GROUND           34          67 3 68          68           -DB(11)
  315. ==============================================================================
  316.  
  317.          NOTES:
  318.            (1) The minus sign next to a signal indicates active low.
  319.            (2) The conductor number refers to the conductor position when
  320.          using 0.025- inch centerline flat ribbon cable.  Other cable types
  321.          may be used to implement equivalent contact assignments.
  322.            (3) 8 bit devices which connected to the P-cable shall leave the
  323.          following signals open:
  324.          -DB(12) -DB(13) -DB(14) -DB(15) -DB(P1) -DB(8) -DB(9) -DB(10) -DB(11)
  325.          All other signals shall be connected as defined.
  326.  
  327.             Table 4-3: Single-Ended Contact Assignments - Q cable
  328.  
  329. |==============================================================================
  330. |                    Connector       Cable        Connector
  331. |      Signal         Contact      Conductor       Contact        Signal
  332. |       Name           Number       Number          Number         Name
  333. |------------------------------------------------------------------------------
  334. |      GROUND            1           1 |  2          35           -DB(28)
  335. |      GROUND            2           3 |  4          36           -DB(29)
  336. |      GROUND            3           5 |  6          37           -DB(30)
  337. |      GROUND            4           7 |  8          38           -DB(31)
  338. |      GROUND            5           9 | 10          39           -DB(P3)
  339. |      GROUND            6          11 | 12          40           -DB(16)
  340. |      GROUND            7          13 | 14          41           -DB(17)
  341. |      GROUND            8          15 | 16          42           -DB(18)
  342. |      GROUND            9          17 | 18          43           -DB(19)
  343. |      GROUND           10          19 | 20          44           -DB(20)
  344. |      GROUND           11          21 | 22          45           -DB(21)
  345. |      GROUND           12          23 | 24          46           -DB(22)
  346. |      GROUND           13          25 | 26          47           -DB(23)
  347. |      GROUND           14          27 | 28          48           -DB(P2)
  348. |      GROUND           15          29 | 30          49           GROUND
  349. |      GROUND           16          31 | 32          50           GROUND
  350. |      TERMPWRB         17          33 | 34          51           TERMPWRB
  351. |      TERMPWRB         18          35 | 36          52           TERMPWRB
  352. |      RESERVED         19          37 | 38          53           RESERVED
  353. |      GROUND           20          39 | 40          54           GROUND
  354. |      GROUND           21          41 | 42          55           TERMINATED
  355. |      GROUND           22          43 | 44          56           GROUND
  356. |      GROUND           23          45 | 46          57           TERMINATED
  357. |      GROUND           24          47 | 48          58           TERMINATED
  358. |      GROUND           25          49 | 50          59           TERMINATED
  359. |      GROUND           26          51 | 52          60           TERMINATED
  360. |      GROUND           27          53 | 54          61           TERMINATED
  361. |      GROUND           28          55 | 56          62           TERMINATED
  362. |      GROUND           29          57 | 58          63           TERMINATED
  363. |      GROUND           30          59 | 60          64           TERMINATED
  364. |      GROUND           31          61 | 62          65           -DB(24)
  365. |      GROUND           32          63 | 64          66           -DB(25)
  366. |      GROUND           33          65 | 66          67           -DB(26)
  367. |      GROUND           34          67 | 68          68           -DB(27)
  368. |==============================================================================
  369.  
  370.  
  371.          NOTES:
  372.            (1) The minus sign next to a signal indicates active low.
  373.            (2) The conductor number refers to the conductor position when
  374.          using 0.025- inch centerline flat ribbon cable.  Other cable types
  375.          may be used to implement equivalent contact assignments.
  376.  
  377.  
  378.             Table 4-4: Differential Contact Assignments - P cable
  379.  
  380. ==============================================================================
  381.                     Connector       Cable        Connector
  382.       Signal         Contact      Conductor       Contact        Signal
  383.        Name           Number       Number          Number         Name
  384. ------------------------------------------------------------------------------
  385.       +DB(12)           1           1 3  2          35           -DB(12)
  386.       +DB(13)           2           3 3  4          36           -DB(13)
  387.       +DB(14)           3           5 3  6          37           -DB(14)
  388.       +DB(15)           4           7 3  8          38           -DB(15)
  389.       +DB(P1)           5           9 3 10          39           -DB(P1)
  390.       GROUND            6          11 3 12          40           GROUND
  391.       +DB(0)            7          13 3 14          41           -DB(0)
  392.       +DB(1)            8          15 3 16          42           -DB(1)
  393.       +DB(2)            9          17 3 18          43           -DB(2)
  394.       +DB(3)           10          19 3 20          44           -DB(3)
  395.       +DB(4)           11          21 3 22          45           -DB(4)
  396.       +DB(5)           12          23 3 24          46           -DB(5)
  397.       +DB(6)           13          25 3 26          47           -DB(6)
  398.       +DB(7)           14          27 3 28          48           -DB(7)
  399.       +DB(P)           15          29 3 30          49           -DB(P)
  400.       DIFFSENS         16          31 3 32          50           GROUND
  401.       TERMPWR          17          33 3 34          51           TERMPWR
  402.       TERMPWR          18          35 3 36          52           TERMPWR
  403.       RESERVED         19          37 3 38          53           RESERVED
  404.       +ATN             20          39 3 40          54           -ATN
  405.       GROUND           21          41 3 42          55           GROUND
  406.       +BSY             22          43 3 44          56           -BSY
  407.       +ACK             23          45 3 46          57           -ACK
  408.       +RST             24          47 3 48          58           -RST
  409.       +MSG             25          49 3 50          59           -MSG
  410.       +SEL             26          51 3 52          60           -SEL
  411.       +C/D             27          53 3 54          61           -C/D
  412.       +REQ             28          55 3 56          62           -REQ
  413.       +I/O             29          57 3 58          63           -I/O
  414.       GROUND           30          59 3 60          64           GROUND
  415.       +DB(8)           31          61 3 62          65           -DB(8)
  416.       +DB(9)           32          63 3 64          66           -DB(9)
  417.       +DB(10)          33          65 3 66          67           -DB(10)
  418.       +DB(11)          34          67 3 68          68           -DB(11)
  419. ==============================================================================
  420.  
  421.          NOTES:
  422.            (1) The conductor number refers to the conductor position
  423.          when using 0.025- inch centerline flat ribbon cable.  Other cable
  424.          types may be used to implement equivalent contact assignments.
  425.            (2) 8 bit devices which connected to the P-cable shall leave the
  426.          following signals open:
  427.          -DB(12) -DB(13) -DB(14) -DB(15) -DB(P1) -DB(8) -DB(9) -DB(10) -DB(11)
  428.          +DB(12) +DB(13) +DB(14) +DB(15) +DB(P1) +DB(8) +DB(9) +DB(10) +DB(11)
  429.          All other signals shall be connected as defined.
  430.  
  431.             Table 4-5: Differential Contact Assignments - Q cable
  432.  
  433. ==============================================================================
  434.                     Connector       Cable        Connector
  435.       Signal         Contact      Conductor       Contact        Signal
  436.        Name           Number       Number          Number         Name
  437. ------------------------------------------------------------------------------
  438.       +DB(28)           1           1 |  2          35           -DB(28)
  439.       +DB(29)           2           3 |  4          36           -DB(29)
  440.       +DB(30)           3           5 |  6          37           -DB(30)
  441.       +DB(31)           4           7 |  8          38           -DB(31)
  442.       +DB(P3)           5           9 | 10          39           -DB(P3)
  443.       GROUND            6          11 | 12          40           GROUND
  444.       +DB(16)           7          13 | 14          41           -DB(16)
  445.       +DB(17)           8          15 | 16          42           -DB(17)
  446.       +DB(18)           9          17 | 18          43           -DB(18)
  447.       +DB(19)          10          19 | 20          44           -DB(19)
  448.       +DB(20)          11          21 | 22          45           -DB(20)
  449.       +DB(21)          12          23 | 24          46           -DB(21)
  450.       +DB(22)          13          25 | 26          47           -DB(22)
  451.       +DB(23)          14          27 | 28          48           -DB(23)
  452.       +DB(P2)          15          29 | 30          49           -DB(P2)
  453.       DIFFSENS         16          31 | 32          50           GROUND
  454.       TERMPWRQ         17          33 | 34          51           TERMPWRQ
  455.       TERMPWRQ         18          35 | 36          52           TERMPWRQ
  456.       RESERVED         19          37 | 38          53           RESERVED
  457.       TERMINATED       20          39 | 40          54           TERMINATED
  458.       GROUND           21          41 | 42          55           GROUND
  459.       TERMINATED       22          43 | 44          56           TERMINATED
  460.       TERMINATED       23          45 | 46          57           TERMINATED
  461.       TERMINATED       24          47 | 48          58           TERMINATED
  462.       TERMINATED       25          49 | 50          59           TERMINATED
  463.       TERMINATED       26          51 | 52          60           TERMINATED
  464.       TERMINATED       27          53 | 54          61           TERMINATED
  465.       TERMINATED       28          55 | 56          62           TERMINATED
  466.       TERMINATED       29          57 | 58          63           TERMINATED
  467.       GROUND           30          59 | 60          64           GROUND
  468.       +DB(24)          31          61 | 62          65           -DB(24)
  469.       +DB(25)          32          63 | 64          66           -DB(25)
  470.       +DB(26)          33          65 | 66          67           -DB(26)
  471.       +DB(27)          34          67 | 68          68           -DB(27)
  472. ==============================================================================
  473.  
  474.          NOTES:
  475.            (1) The minus sign next to a signal indicates active low.
  476.            (2) The conductor number refers to the conductor position when
  477.          using 0.025- inch centerline flat ribbon cable.  Other cable types
  478.          may be used to implement equivalent contact assignments.
  479.  
  480. 4.4. Electrical Description
  481.  
  482.   For the measurements in this section, SCSI bus termination is assumed to be
  483. external to the SCSI device.  See 4.4.1 for the terminating requirements for
  484. the RESERVED lines.  SCSI devices may have the provision for allowing optional
  485. internal termination.
  486.  
  487. 4.4.1. Single-Ended Alternative
  488.  
  489.   All signals not defined as RESERVED, GROUND, OPEN, or TERMPWR shall be
  490. terminated at both ends of the cable.  The implementor may choose one of the
  491. following two methods to terminate each end (see Figure 4-5):
  492.  
  493.   (1) The termination of each signal shall consist of 220 ohms (+_5%) to the
  494. TERMPWR line and 330 ohms (+_5%) to ground.  Using resistors with +_1%
  495. tolerance improves noise margins.
  496.   (2) The termination of each signal shall meet these requirements:
  497.      (a) The terminators shall each supply a characteristic impedance between
  498.   100 and 132 ohms.
  499.      (b) The terminators shall be powered by the TERMPWR line and may receive
  500.   additional power from other sources but shall not require such additional
  501.   power for proper operation (see 4.4.3).
  502.      (c) The current available to any signal line driver shall not exceed
  503.   48 milliamps when the driver asserts the line and pulls it to 0.5 volts dc.
  504.   Only 44.8 mA of this current shall be available from the two terminators.
  505.      (d) The voltage on all released signal lines shall be at least 2.5 volts
  506.   dc when the TERMPWR line is within specified values (see 4.4.3).
  507.      (e) These conditions shall be met with any legal configuration of targets
  508.   and initiators as long as at least one device is supplying TERMPWR.
  509.  
  510.   The first termination method above is the same as in SCSI-1.  The second
  511. termination method is recommended for better signal quality.
  512.  
  513. 4.4.1.1. Output Characteristics
  514.   All signals shall use open-collector or three-state drivers.  Each signal
  515. driven by an SCSI device shall have the following output characteristics when
  516. measured at the SCSI device's connector:
  517.   VOL (Low-level output voltage) = 0.0 to 0.5 volts dc at 48 mA sinking
  518.                                    (signal assertion)
  519.   VOH (High-level output voltage) = 2.5 to 5.25 volts dc (signal negation)
  520.  
  521. 4.4.1.2. Input Characteristics
  522.   SCSI devices with power on shall meet the following electrical
  523. characteristics on each signal (including both receivers and passive drivers):
  524.   VIL (Low-level input voltage) = 0.0 to 0.8 volts dc (signal true)
  525.   VIH (High-level input voltage) = 2.0 to 5.25 volts dc (signal false)
  526.   IIL (Low-level input current) = -0.4 to 0.0 mA at VI = 0.5 volts dc
  527.   IIH (High-level input current) = 0.0 to 0.1 mA at VI = 2.7 volts dc
  528.   Minimum input hysteresis = 0.2 volts dc
  529.   Maximum input capacitance = 25 pF (measured at the device connector closest
  530.                               to the stub, if any, within the device)
  531.  
  532.   It is recommended that SCSI devices with power off also meet the above IIL
  533. and IIH electrical characteristics on each signal.
  534.  
  535.   To achieve maximum noise immunity and to assure proper operation with
  536. complex cable configurations, it is recommended that the nominal switching
  537. threshold be approximately 1.4 volts.
  538.  
  539. 4.4.2. Differential Alternative
  540.  
  541.   All signals consist of two lines denoted +SIGNAL and -SIGNAL.  A signal is
  542. true when +SIGNAL is more positive than -SIGNAL, and a signal is false when
  543. -SIGNAL is more positive than +SIGNAL.  All assigned signals of the P and Q
  544. cables described in 4.6 shall be terminated at each end of the cable with a
  545. terminator network as shown in Figure 4-6.  Resistor tolerances in the
  546. terminator network shall be +_5% or less.
  547.  
  548.   The DIFFSENS signal of the connector is used as an active high enable for
  549. the differential drivers.  If a single-ended device or terminator is
  550. inadvertently connected, this signal is grounded, disabling the differential
  551. drivers (see Figure 4-4 and Figure 4-5).
  552.  
  553. 4.4.2.1. Output Characteristics
  554.   Each signal driven by an SCSI device shall have the following output
  555. characteristics when measured at the SCSI device's connector:
  556.   VOL (Low-level output voltage) = 1.7 V maximum at IOL (Low-level output
  557.                                    current) = 55 mA.
  558.   VOH (High-level output voltage) = 2.7 V minimum at IOH (High-level output
  559.                                     current) = -55 mA.
  560.   VOD (Differential output voltage) = 1.0 V minimum with common-mode voltage
  561.                                       ranges from -7 to +12 volts dc.
  562.  
  563.   VOL and VOH shall be as measured between the output terminal and the SCSI
  564. device's logic ground reference.
  565.  
  566.   The output characteristics shall additionally conform to ISO 8482.
  567.  
  568. 4.4.2.2. Input Characteristics
  569.   SCSI devices shall meet the following electrical characteristics on each
  570. signal (including both receivers and passive drivers):
  571.   II (Input current on either input) = +_ 2.0 mA maximum.
  572.   Maximum input capacitance = 25 pF.
  573.  
  574.   The II requirement shall be met with the input voltage varying between -7
  575. and +12 volts dc, with power on or off, and with the hysteresis equaling 35
  576. millivolts, minimum.
  577.  
  578.   The input characteristics shall additionally conform to ISO 8482.
  579.  
  580. 4.4.3. Terminator Power
  581.  
  582.   SCSI initiators shall supply terminator power to the TERMPWR contact(s) and,
  583. if it implements the wide SCSI option, to the TERMPWRQ contacts.  This power
  584. shall be supplied through a diode or similar semiconductor that prevents
  585. backflow of power to the SCSI device.  Targets and SCSI devices that become
  586. temporary initiators (e.g., targets which implement the COPY command or
  587. asynchronous event notification) are not required to supply terminator power.
  588. Any SCSI device may supply terminator power.  Interface error rates are lower
  589. if the termination voltage is maintained at the extreme ends of the cable.
  590.  
  591.   All terminators independent of location shall be powered from the TERMPWR
  592. and TERMPWRQ contact(s).  The use of keyed connectors is recommended in SCSI
  593. devices that provide terminator power to prevent accidental grounding or
  594. misconnection of terminator power.
  595.  
  596.   IMPLEMENTORS NOTE: Regulatory agencies may require limiting maximum (short
  597.   circuit) current to the terminator power lines.  Recommended current
  598.   limiting is 2 amperes for TERMPWR and TERMPWRQ.  For systems utilizing
  599.   multiple initiators, the initiators may be configured with option straps or
  600.   current limiting devices.  Maximum available current should not exceed 5
  601.   amperes.
  602.  
  603.   SCSI devices shall sink no more than 1.0 mA from TERMPWR and no more than
  604. 1.0 mA from TERMPWRQ except to power an optional internal terminator.
  605.  
  606.    Single-ended SCSI devices providing terminator power on cable P and
  607. cable Q shall have the following characteristics:
  608.   VTerm = 4.25 to 5.25 volts dc
  609.           1500 mA minimum source drive capability
  610.  
  611.   Differential SCSI devices providing terminator power on cable P and
  612. cable Q shall have the following characteristics:
  613.   VTerm = 4.0 to 5.25 volts dc
  614.           1000 mA minimum source drive capability
  615.  
  616.   IMPLEMENTORS NOTE:  It is recommended that the terminator power lines be
  617.   decoupled at each terminator with at least a 2.2 microfarad high-frequency
  618.   capacitor to improve signal quality.
  619.  
  620.  
  621.                           Alternative 1 Termination
  622.  
  623.  
  624.                           Alternative 2 Termination
  625.  
  626.                Figure 4-5: Termination for Single-Ended Devices
  627.  
  628.  
  629.                Figure 4-6: Termination for Differential Devices
  630.  
  631.  
  632.               Figure 4-7: Differential Driver Protection Circuit
  633.  
  634. 4.4.4. RESERVED Lines
  635.  
  636.   The lines labeled RESERVED shall be open on all SCSI devices.
  637.  
  638. 4.5. SCSI Bus
  639.  
  640.   Communication on the SCSI bus is allowed between only two SCSI devices at
  641. any given time.  There is a maximum of 16 SCSI devices on a P cabled system
  642. and 32 SCSI devices on a P/Q cabled system.  Each SCSI device
  643. has an SCSI ID bit assigned as shown in Figure 4-8.  Three sample system
  644. configurations are shown in Figure 4-9.
  645.  
  646.   When two SCSI devices communicate on the SCSI bus, one acts as an initiator
  647. and the other acts as a target.  The initiator originates an operation and the
  648. target performs the operation.  An SCSI device usually has a fixed role as an
  649. initiator or target, but some devices may be able to assume either role.
  650.  
  651.   An initiator may address up to 32 peripheral devices that are connected to a
  652. target on a P/Q cabled system.  Three sample system configurations are shown in
  653. Figure 4-8.
  654.  
  655.         SCSI ID bits for P and P/Q peripheral devices:
  656.  
  657.     DB(7) DB(6) DB(5) DB(4) DB(3) DB(2) DB(1) DB(0)  <-- DATA BUS
  658.     |     |     |     |     |     |     |     |
  659.     |     |     |     |     |     |     |     SCSI ID = 0
  660.     |     |     |     |     |     |     |
  661.     |     |     |     |     |     |     SCSI ID = 1
  662.     |     |     |     |     |     |
  663.     |     |     |     |     |     SCSI ID = 2
  664.     |     |     |     |     |
  665.     |     |     |     |     SCSI ID = 3
  666.     |     |     |     |
  667.     |     |     |     SCSI ID = 4
  668.     |     |     |
  669.     |     |     SCSI ID = 5
  670.     |     |
  671.     |     SCSI ID = 6
  672.     |
  673.     SCSI ID = 7
  674.  
  675.  
  676.         SCSI ID bits for P, and P/Q peripheral devices:
  677.  
  678.     DB(15) DB(14) DB(13) DB(12) DB(11) DB(10) DB(9) DB(8)  <-- DATA BUS
  679.     |      |      |      |      |      |      |     |
  680.     |      |      |      |      |      |      |     SCSI ID = 8
  681.     |      |      |      |      |      |      |
  682.     |      |      |      |      |      |      SCSI ID = 9
  683.     |      |      |      |      |      |
  684.     |      |      |      |      |      SCSI ID = 10
  685.     |      |      |      |      |
  686.     |      |      |      |      SCSI ID = 11
  687.     |      |      |      |
  688.     |      |      |      SCSI ID = 12
  689.     |      |      |
  690.     |      |      SCSI ID = 13
  691.     |      |
  692.     |      SCSI ID = 14
  693.     |
  694.     SCSI ID = 15
  695.  
  696.         SCSI ID bits for P/Q peripheral devices:
  697.  
  698.     DB(23) DB(22) DB(21) DB(20) DB(19) DB(18) DB(17) DB(16)  <-- DATA BUS
  699.     |      |      |      |      |      |      |      |
  700.     |      |      |      |      |      |      |      SCSI ID = 16
  701.     |      |      |      |      |      |      |
  702.     |      |      |      |      |      |      SCSI ID = 17
  703.     |      |      |      |      |      |
  704.     |      |      |      |      |      SCSI ID = 18
  705.     |      |      |      |      |
  706.     |      |      |      |      SCSI ID = 19
  707.     |      |      |      |
  708.     |      |      |      SCSI ID = 20
  709.     |      |      |
  710.     |      |      SCSI ID = 21
  711.     |      |
  712.     |      SCSI ID = 22
  713.     |
  714.     SCSI ID = 23
  715.  
  716.  
  717.         SCSI ID bits for P/Q peripheral devices:
  718.  
  719.     DB(31) DB(30) DB(29) DB(28) DB(27) DB(26) DB(25) DB(24)  <-- DATA BUS
  720.     |      |      |      |      |      |      |      |
  721.     |      |      |      |      |      |      |      SCSI ID = 24
  722.     |      |      |      |      |      |      |
  723.     |      |      |      |      |      |      SCSI ID = 25
  724.     |      |      |      |      |      |
  725.     |      |      |      |      |      SCSI ID = 26
  726.     |      |      |      |      |
  727.     |      |      |      |      SCSI ID = 27
  728.     |      |      |      |
  729.     |      |      |      SCSI ID = 28
  730.     |      |      |
  731.     |      |      SCSI ID = 29
  732.     |      |
  733.     |      SCSI ID = 30
  734.     |
  735.     SCSI ID = 31
  736.  
  737.                           Figure 4-8: SCSI ID Bits
  738.  
  739.  
  740.                     Figure 4-9: Sample SCSI Configurations
  741.  
  742.   Up to 32 SCSI devices can be supported on the SCSI bus on P/Q cabled systems.
  743. They can be any combination of initiators and targets provided there is at
  744. least one of each.
  745.  
  746.   Certain SCSI bus functions are assigned to the initiator and certain SCSI
  747. bus functions are assigned to the target.  The initiator may arbitrate for the
  748. SCSI bus and select a particular target.  The target may request the transfer
  749. of COMMAND, DATA, STATUS, or other information on the DATA BUS, and in some
  750. cases it may arbitrate for the SCSI bus and reselect an initiator for the
  751. purpose of continuing an operation.
  752.  
  753.   Information transfers on the DATA BUS are asynchronous and follow a defined
  754. REQ/ACK handshake protocol.  One or two byte(s) of information may be
  755. transferred with each handshake on the P cable and, if the wide data transfer
  756. option is implemented, two bytes of information may be transferred with each
  757. handshake on the Q cable.  An option is defined for synchronous data transfer.
  758.  
  759. 4.6. SCSI Bus Signals
  760.  
  761.   There are a total of 27 signals on the P cable and 20 signals on the Q
  762. cable.  A total of 11 signals are used for control and 36 are used for data
  763. (messages, commands, status, and data), including parity.  These signals are
  764. described as follows:
  765.  
  766. BSY (BUSY).  An "OR-tied" signal that indicates that the bus is being used.
  767.  
  768. SEL (SELECT).  An "OR-tied" signal used by an initiator to select a target or
  769. by a target to reselect an initiator.
  770.  
  771. C/D  (CONTROL/DATA).  A signal driven by a target that indicates whether
  772. CONTROL or DATA information is on the DATA BUS.  True indicates CONTROL.
  773.  
  774. I/O (INPUT/OUTPUT).  A signal driven by a target that controls the direction
  775. of data movement on the DATA BUS with respect to an initiator. True indicates
  776. input to the initiator.  This signal is also used to distinguish between
  777. SELECTION and RESELECTION phases.
  778.  
  779. MSG (MESSAGE).  A signal driven by a target during the MESSAGE phase.
  780.  
  781. REQ (REQUEST).  A signal driven by a target on the P cable to indicate a
  782. request for a REQ/ACK data transfer handshake.
  783.  
  784. REQQ (REQUEST).  A signal driven by a target on the Q cable to indicate a
  785. request for a REQQ/ACKQ data transfer handshake.
  786.  
  787. ACK (ACKNOWLEDGE).  A signal driven by an initiator on the P cable to
  788. indicate an acknowledgment for a REQ/ACK data transfer handshake.
  789.  
  790. ACKQ (ACKNOWLEDGE).  A signal driven by an initiator on the Q cable to
  791. indicate an acknowledgment for a REQQ/ACKQ data transfer handshake.
  792.  
  793. ATN (ATTENTION).  A signal driven by an initiator to indicate the ATTENTION
  794. condition.
  795.  
  796. RST (RESET).  An "OR-tied" signal that indicates the RESET condition.
  797.  
  798. DB(7-0,P) (DATA BUS).  Eight data-bit signals, plus a parity-bit signal that
  799. form a DATA BUS.  DB(7) is the most significant bit and has the highest
  800. priority during the ARBITRATION phase.  Bit number, significance, and priority
  801. decrease downward to DB(0).  A data bit is defined as one when the signal
  802. value is true and is defined as zero when the signal value is false.  Data
  803. parity DB(P) shall be odd.  Parity is undefined during the ARBITRATION phase.
  804.  
  805. DB(31-8,P1,P2,P3) (DATA BUS). Twenty-four data-bit signals, plus three
  806. parity-bit signals that form an extension to the DATA BUS.  DB(P1,P2,P3) are
  807. parity bits for DB(15-8), DB(23-16), and DB(31-24) respectively.  On SCSI
  808. devices which support 16 IDs DB(15) has the highest priority in the DB(15-8)
  809. byte during the ARBITRATION phase.  The priority decreases downward to DB(8).
  810. DB(15) has a lower priority than DB(0).  On SCSI devices which support 32 IDs
  811. DB(23) has the highest priority in the DB(23-16) byte and DB(31) has the
  812. highest priority in the DB(31-24) byte during the ARBITRATION phase.  The
  813. priority decreases downward to DB(16) in the DB(23-16) byte and to DB(24) in
  814. the DB(31-24) byte.  DB(23) has a lower priority than DB(8) and DB(31) has a
  815. lower priority than DB(16).  A data bit is defined as one when the signal value
  816. is true and is defined as zero when the signal value is false.  Data parity
  817. DB(Px) shall be odd.
  818.  
  819. 4.6.1. Signal Values
  820.  
  821.   Signals may assume true or false values.  There are two methods of driving
  822. these signals.  In both cases, the signal shall be actively driven true, or
  823. asserted.  In the case of OR-tied drivers, the driver does not drive the
  824. signal to the false state, rather the bias circuitry of the bus terminators
  825. pulls the signal false whenever it is released by the drivers at every SCSI
  826. device.  If any driver is asserted, then the signal is true.  In the case of
  827. non-OR-tied drivers, the signal may be actively driven false.  In this
  828. standard, wherever the term negated is used, it means that the signal may be
  829. actively driven false, or may be simply released (in which case the bias
  830. circuitry pulls it false), at the option of the implementor.  The advantage to
  831. actively driving signals false during information transfer is that the
  832. transition from true to false occurs more quickly and the noise margin is much
  833. higher than if the signal is simply released.  This facilitates reliable data
  834. transfer at high rates, especially at the longer cable lengths used with
  835. differential drivers.
  836.  
  837. 4.6.2. OR-Tied Signals
  838.  
  839.   The BSY, SEL, and RST signals shall be OR-tied only.  In the ordinary
  840. operation of the bus, the BSY and RST signals may be simultaneously driven
  841. true by several drivers.  No signals other than BSY, RST, and DB(P) are
  842. simultaneously driven by two or more drivers, and any signal other than BSY,
  843. SEL, and RST may employ OR-tied or non-OR-tied drivers.  DB(P) shall not be
  844. driven false during the ARBITRATION phase but may be driven false in other
  845. phases.  There is no operational problem in mixing OR-tied and non-OR-tied
  846. drivers on signals other than BSY and RST.
  847.  
  848. 4.6.3. Signal Sources
  849.  
  850.   Table 4-6 indicates which type of SCSI device is allowed to source each
  851. signal.  No attempt is made to show if the source is driving asserted, driving
  852. negated, or is passive.  All SCSI device drivers that are not active sources
  853. shall be in the passive state.  The RST signal may be asserted by any SCSI
  854. device at any time.
  855.  
  856.                           Table 4-6: Signal Sources
  857.  
  858. ===============================================================================
  859.                       P cable Signals                       Q Cable Signals
  860.               -----------------------------------------  ---------------------
  861.                           C/D,        8,16,32  16,32 ID              32 ID
  862.                           I/O,        ID Dev   Device                Device
  863.                           MSG,  ACK,  DB(7-0)  DB(15-8)              DB(31-16)
  864.  Bus Phase    BSY   SEL   REQ   ATN   DB(P)    DB(P1)    REQB  ACKB  DB(P2,P3)
  865.  -----------  ----  ----  ----  ----  -------  --------  ----  ----  ---------
  866.  BUS FREE     None  None  None  None  None     None      None  None   None
  867.  ARBITRATION  All   Win   None  None  S ID     S ID      None  None   S ID
  868.  SELECTION    I&T   Init  None  Init  Init     Init      None  None   Init
  869.  RESELECTION  I&T   Targ  Targ  Init  Targ     Targ      None  None   Targ
  870.  COMMAND      Targ  None  Targ  Init  Init     None      None  None   None
  871.  DATA IN      Targ  None  Targ  Init  Targ     Targ      Targ  Init   Targ
  872.  DATA OUT     Targ  None  Targ  Init  Init     Init      Targ  Init   Init
  873.  STATUS       Targ  None  Targ  Init  Targ     None      None  None   None
  874.  MESSAGE IN   Targ  None  Targ  Init  Targ     None      None  None   None
  875.  MESSAGE OUT  Targ  None  Targ  Init  Init     None      None  None   None
  876. ==============================================================================
  877.  
  878.  
  879. All:    The signal shall be driven by all SCSI devices that are actively
  880.         arbitrating.
  881.  
  882. S ID:   A unique data bit (the SCSI ID) shall be driven by each SCSI device
  883.         that is actively arbitrating; the other data bits shall be
  884.         released (i.e., not driven) by this SCSI device.  The parity bit
  885.         (DB(P)) may be released or driven to the true state, but shall never
  886.         be driven to the false state during this phase.
  887.  
  888. I&T:    The signal shall be driven by the initiator, target, or both, as
  889.         specified in the SELECTION phase and RESELECTION phase.
  890.  
  891. Init:   If driven, this signal shall be driven only by the active initiator.
  892.  
  893. None:   The signal shall be released; that is, not be driven by any SCSI
  894.         device.  The bias circuitry of the bus terminators pulls the signal to
  895.         the false state.
  896.  
  897. Win:    The signal shall be driven by the one SCSI device that wins
  898.         arbitration.
  899.  
  900. Targ:   If the signal is driven, it shall be driven only by the active target.
  901.  
  902.  
  903. 4.7. SCSI Bus Timing
  904.  
  905.   Unless otherwise indicated, the delay-time measurements for each SCSI
  906. device, shown in Table 4-7, shall be calculated from signal conditions
  907. existing at that SCSI device's own SCSI bus connection.  Thus, these
  908. measurements (except cable skew delay) can be made without considering delays
  909. in the cable.  The timing characteristics of each signal are described in the
  910. following paragraphs.
  911.  
  912.                       Table 4-7: SCSI Bus Timing Values
  913.  
  914.         ==============================================================
  915.         Arbitration Delay . . . . . . . . 2.4 microseconds
  916.         Assertion Period  . . . . . . . .  90 nanoseconds
  917.         Bus Clear Delay . . . . . . . . . 800 nanoseconds
  918.         Bus Free Delay  . . . . . . . . . 800 nanoseconds
  919.         Bus Set Delay . . . . . . . . . . 1.8 microseconds
  920.         Bus Settle Delay  . . . . . . . . 400 nanoseconds
  921.         Cable Skew Delay  . . . . . . . .  10 nanoseconds
  922.         Data Release Delay  . . . . . . . 400 nanoseconds
  923.         Deskew Delay  . . . . . . . . . .  45 nanoseconds
  924.         Disconnection Delay . . . . . . . 200 microseconds
  925.         Hold Time . . . . . . . . . . . .  45 nanoseconds
  926.         Negation Period . . . . . . . . .  90 nanoseconds
  927.         Power-On to Selection Time  . . .  10 seconds recommended
  928.         Reset to Selection Time . . . . . 250 milliseconds recommended
  929.         Reset Hold Time . . . . . . . . .  25 microseconds
  930.         Selection Abort Time  . . . . . . 200 microseconds
  931.         Selection Time-out Delay  . . . . 250 milliseconds recommended
  932.         Transfer Period . . . . . . . . . set during an SDTR message
  933.         Fast Assertion Period . . . . . .  30 nanoseconds
  934.         Fast Cable Skew Delay . . . . . .   5 nanoseconds
  935.         Fast Deskew Delay . . . . . . . .  20 nanoseconds
  936.         Fast Hold Time  . . . . . . . . .  10 nanoseconds
  937.         Fast Negation Period  . . . . . .  30 nanoseconds
  938.         ==============================================================
  939.  
  940.  
  941. 4.7.1. Arbitration Delay 
  942.  
  943.   The minimum time an SCSI device shall wait from asserting BSY for
  944. arbitration until the DATA BUS can be examined to see if arbitration has been
  945. won.  There is no maximum time.
  946.  
  947. 4.7.2. Assertion Period 
  948.  
  949.   The minimum time that a target shall assert REQ (or REQQ) while using
  950. synchronous data transfers.  Also, the minimum time that an initiator shall
  951. assert ACK (or ACKQ) while using synchronous data transfers.  REQQ and ACKQ
  952. timings only apply to optional wide data transfers.
  953.  
  954. 4.7.3. Bus Clear Delay 
  955.  
  956.   The maximum time for an SCSI device to stop driving all bus signals after:
  957.   (1) The BUS FREE phase is detected (BSY and SEL both false for a bus settle
  958.   delay)
  959.   (2) SEL is received from another SCSI device during the ARBITRATION phase
  960.   (3) The transition of RST to true.
  961.  
  962.   For the first condition above, the maximum time for an SCSI device to clear
  963. the bus is 1200 nanoseconds from BSY and SEL first becoming both false.  If an
  964. SCSI device requires more than a bus settle delay to detect BUS FREE phase, it
  965. shall clear the bus within a bus clear delay minus the excess time.
  966.  
  967. 4.7.4. Bus Free Delay 
  968.  
  969.   The minimum time that an SCSI device shall wait from its detection of the
  970. BUS FREE phase (BSY and SEL both false for a bus settle delay) until its
  971. assertion of BSY when going to the ARBITRATION phase.
  972.  
  973. 4.7.5. Bus Set Delay 
  974.  
  975.   The maximum time for an SCSI device to assert BSY and its SCSI ID bit on the
  976. DATA BUS after it detects BUS FREE phase (BSY and SEL both false for a bus
  977. settle delay) for the purpose of entering the ARBITRATION phase.
  978.  
  979. 4.7.6. Bus Settle Delay 
  980.  
  981.   The minimum time to wait for the bus to settle after changing certain
  982. control signals as called out in the protocol definitions.
  983.  
  984. 4.7.7. Cable Skew Delay 
  985.  
  986.   The maximum difference in propagation time allowed between any two SCSI bus
  987. signals measured between any two SCSI devices.
  988.  
  989. 4.7.8. Data Release Delay 
  990.  
  991.   The maximum time for an initiator to release the DATA BUS signals following
  992. the transition of the I/O signal from false to true.
  993.  
  994. 4.7.9. Deskew Delay 
  995.  
  996.   The minimum time required for deskew of certain signals.
  997.  
  998. 4.7.10. Disconnection Delay 
  999.  
  1000.   The minimum time that a target shall wait after releasing BSY before
  1001. participating in an ARBITRATION phase when honoring a DISCONNECT message from
  1002. the initiator.
  1003.  
  1004. 4.7.11. Hold Time 
  1005.  
  1006.   The minimum time added between the assertion of REQ (or REQQ) or ACK (or
  1007. ACKQ) and the changing of the data lines to provide hold time in the initiator
  1008. or target while using synchronous data transfers.  REQQ and ACKQ timings only
  1009. apply to optional wide data transfers.
  1010.  
  1011. 4.7.12. Negation Period 
  1012.  
  1013.   The minimum time that a target shall negate REQ (or REQQ) while using
  1014. synchronous data transfers.  Also, the minimum time that an initiator shall
  1015. negate ACK (or ACKQ) while using synchronous data transfers.  REQQ and ACKQ
  1016. timings only apply to optional wide data transfers.
  1017.  
  1018. 4.7.13. Power-On to Selection Time 
  1019.  
  1020.   The recommended maximum time from power application until an SCSI target is
  1021. able to respond with appropriate status and sense data to the TEST UNIT READY,
  1022. INQUIRY, and REQUEST SENSE commands.
  1023.  
  1024. 4.7.14. Reset to Selection Time 
  1025.  
  1026.   The recommended maximum time after a hard RESET condition until an SCSI
  1027. target is able to respond with appropriate status and sense data to the TEST
  1028. UNIT READY, INQUIRY, and REQUEST SENSE commands.
  1029.  
  1030. 4.7.15. Reset Hold Time 
  1031.  
  1032.   The minimum time for which RST is asserted.  There is no maximum time.
  1033.  
  1034. 4.7.16. Selection Abort Time 
  1035.  
  1036.   The maximum time that a target (or initiator) shall take from its most
  1037. recent detection of being selected (or reselected) until asserting a BSY
  1038. response.  This time-out is required to ensure that a target (or initiator)
  1039. does not assert BSY after a SELECTION (or RESELECTION) phase has been aborted.
  1040. This is not the selection time-out period; see 5.1.3.1 and 5.1.4.2 for a
  1041. complete description.
  1042.  
  1043. 4.7.17. Selection Time-out Delay 
  1044.  
  1045.   The minimum time that an initiator (or target) should wait for a BSY
  1046. response during the SELECTION (or RESELECTION) phase before starting the time-
  1047. out procedure.  Note that this is only a recommended time period.
  1048.  
  1049. 4.7.18. Transfer Period 
  1050.  
  1051.   The Transfer Period specifies the minimum time allowed between the leading
  1052. edges of successive REQ pulses and of successive ACK pulses while using
  1053. synchronous data transfers.  (See 5.1.5.2 and 5.6.21.)
  1054.  
  1055. 4.8. Fast Synchronous Transfer Option
  1056.  
  1057.   When devices negotiate a synchronous data transfer period between 100 ns and
  1058. 200 ns they are said to be using "fast synchronous data transfers".  Devices
  1059. which negotiate a synchronous data transfer period greater than 200 ns use
  1060. timing parameters specified in 4.7.  When a fast synchronous data transfer
  1061. period is negotiated, those specific times redefined in this section are used;
  1062. those not redefined remain the same.  The minimum synchronous data transfer
  1063. period is 100 ns.
  1064.  
  1065. 4.8.1. Fast Assertion Period 
  1066.  
  1067.   This value is the minimum time that a target shall assert REQ (or REQQ)
  1068. while using fast synchronous data transfers.  Also, the minimum time that an
  1069. initiator shall assert ACK (or ACKQ) while using fast synchronous data
  1070. transfers.  REQQ and ACKQ timings only apply to optional wide data transfers.
  1071.  
  1072. 4.8.2. Fast Cable Skew Delay 
  1073.  
  1074.   This value is the maximum difference in propagation time allowed between any
  1075. two SCSI bus signals measured between any two SCSI devices while using fast
  1076. synchronous data transfers.
  1077.  
  1078. 4.8.3. Fast Deskew Delay 
  1079.  
  1080.   This value is the minimum time required for deskew of certain signals while
  1081. using fast synchronous data transfers.
  1082.  
  1083. 4.8.4. Fast Hold Time 
  1084.  
  1085.   This value is the minimum time added between the assertion of REQ (or REQQ)
  1086. or ACK (or ACKQ) and the changing of the data lines to provide hold time in
  1087. the initiator or target, respectively, while using fast synchronous data
  1088. transfers.  REQQ and ACKQ timings only apply to optional wide data transfers.
  1089.  
  1090. 4.8.5. Fast Negation Period 
  1091.  
  1092.   This value is the minimum time that a target shall negate REQ (or REQQ)
  1093. while using fast synchronous data transfers.  Also, the minimum time that an
  1094. initiator shall negate ACK (or ACKQ) while using fast synchronous data
  1095. transfers.  REQQ and ACKQ timings only apply to optional wide data transfers.
  1096.  
  1097. 5. Logical Characteristics
  1098.  
  1099. 5.1. SCSI Bus Phases
  1100.  
  1101.   The SCSI architecture includes eight distinct phases:
  1102.  
  1103.   BUS FREE phase
  1104.   ARBITRATION phase
  1105.   SELECTION phase
  1106.   RESELECTION phase
  1107.   COMMAND phase  \
  1108.   DATA phase      \   These phases are collectively termed the
  1109.   STATUS phase    /   information transfer phases.
  1110.   MESSAGE phase  /
  1111.  
  1112.   The SCSI bus can never be in more than one phase at any given time.  In the
  1113. following descriptions, signals that are not mentioned shall not be asserted.
  1114.  
  1115. 5.1.2. ARBITRATION Phase
  1116.  
  1117.   The ARBITRATION phase allows one SCSI device to gain control of the SCSI bus
  1118. so that it can initiate or resume an I/O process.
  1119.  
  1120.   The procedure for an SCSI device to obtain control of the SCSI bus is as
  1121. follows:
  1122.   (1) The SCSI device shall first wait for the BUS FREE phase to occur.  The
  1123. BUS FREE phase is detected whenever both the BSY and SEL signals are
  1124. simultaneously and continuously false for a minimum of a bus settle delay.
  1125.  
  1126.   IMPLEMENTORS NOTE:  This bus settle delay is necessary because a
  1127.   transmission line phenomenon known as a "wired-OR glitch" may cause the BSY
  1128.   signal to briefly appear false, even though it is being driven true.
  1129.  
  1130.   (2) The SCSI device shall wait a minimum of a bus free delay after detection
  1131. of the BUS FREE phase (i.e. after the BSY and SEL signals are both false for a
  1132. bus settle delay) before driving any signal.
  1133.   (3) Following the bus free delay in Step (2), the SCSI device may arbitrate
  1134. for the SCSI bus by asserting both the BSY signal and its own SCSI ID, however
  1135. the SCSI device shall not arbitrate (i.e. assert the BSY signal and its SCSI
  1136. ID) if more than a bus set delay has passed since the BUS FREE phase was last
  1137. observed.
  1138.  
  1139.   IMPLEMENTORS NOTE:  There is no maximum delay before asserting the BSY
  1140.   signal and the SCSI ID following the bus free delay in Step (2) as long as
  1141.   the bus remains in the BUS FREE phase.  However, SCSI devices that delay
  1142.   longer than a bus settle delay plus a bus set delay from the time when the
  1143.   BSY and SEL signals first become false may fail to participate in
  1144.   arbitration when competing with faster SCSI devices.
  1145.  
  1146.   (4) After waiting at least an arbitration delay (measured from its assertion
  1147. of the BSY signal) the SCSI device shall examine the DATA BUS.  If a higher
  1148. priority SCSI ID bit is true on the DATA BUS (DB(7) is the highest), then the
  1149. SCSI device has lost the arbitration and the SCSI device may release its
  1150. signals and return to Step (1).  If no higher priority SCSI ID bit is true on
  1151. the DATA BUS, then the SCSI device has won the arbitration and it shall assert
  1152. the SEL signal.  Any SCSI device other than the winner has lost the
  1153. arbitration and shall release the BSY signal and its SCSI ID bit within a bus
  1154. clear delay after the SEL signal becomes true.  An SCSI device that loses
  1155. arbitration may return to Step (1).
  1156.  
  1157.   The SCSI ID priority is shown below:
  1158.                                      Priority
  1159.                     Highest             -->              Lowest
  1160.                     SCSI ID                              SCSI ID
  1161.  
  1162.         P Cable        7         0                15        8
  1163.         P/Q Cable      7    0    15    8    23    16   31   24
  1164.  
  1165.  
  1166.   IMPLEMENTORS NOTE:  It is recommended that new implementations wait for the
  1167.   SEL signal to become true before releasing the BSY signal and SCSI ID bit
  1168.   when arbitration is lost.
  1169.  
  1170.   (5)  The SCSI device that wins arbitration shall wait at least a bus clear
  1171. delay plus a bus settle delay after asserting the SEL signal before changing
  1172. any signals.
  1173.  
  1174.   NOTE:  The SCSI ID bit is a single bit on the DATA BUS that corresponds to
  1175.   the SCSI device's unique SCSI address.  All other DATA BUS bits shall be
  1176.   released by the SCSI device.  Parity is not valid during the ARBITRATION
  1177.   phase.  During the ARBITRATION phase, DB(PX) may be released or asserted, but
  1178.   shall not be actively driven false.
  1179.  
  1180. 5.1.5. Information Transfer Phases
  1181.  
  1182.   NOTE:  The COMMAND, DATA, STATUS, and MESSAGE phases are all grouped
  1183.   together as the information transfer phases because they are all used to
  1184.   transfer data or control information via the DATA BUS.  The actual content
  1185.   of the information is beyond the scope of this section.
  1186.  
  1187.   The C/D, I/O, and MSG signals are used to distinguish between the different
  1188. information transfer phases (see Table 5-1).  The target drives these three
  1189. signals and therefore controls all changes from one phase to another.  The
  1190. initiator can request a MESSAGE OUT phase by asserting the ATN signal, while
  1191. the target can cause the BUS FREE phase by releasing the MSG, C/D, I/O, and
  1192. BSY signals.
  1193.  
  1194.   The information transfer phases use one or more REQ/ACK handshakes to
  1195. control the information transfer.  Each REQ/ACK handshake allows the transfer
  1196. of one byte of information.  During the information transfer phases the BSY
  1197. signal shall remain true and the SEL signal shall remain false.  Additionally,
  1198. during the information transfer phases, the target shall continuously envelope
  1199. the REQ/ACK handshake(s) with the C/D, I/O, and MSG signals in such a manner
  1200. that these control signals are valid for a bus settle delay before the
  1201. assertion of the REQ signal of the first handshake and remain valid until
  1202. after the negation of the ACK signal at the end of the handshake of the last
  1203. transfer of the phase.
  1204.  
  1205.   IMPLEMENTORS NOTES:
  1206.   (1) After the negation of the ACK signal of the last transfer of the phase,
  1207.   the target may prepare for a new phase by asserting or negating the C/D,
  1208.   I/O, and MSG signals.  These signals may be changed together or
  1209.   individually.  They may be changed in any order and may be changed more than
  1210.   once.  It is desirable that each line change only once.  A new phase does
  1211.   not begin until the REQ signal is asserted for the first byte of the new
  1212.   phase.
  1213.   (2) A phase is defined as ending when the C/D, I/O, or MSG signals change
  1214.   after the negation of the ACK signal.  The time between the end of a phase
  1215.   and the assertion of the REQ signal beginning a new phase is undefined.  An
  1216.   initiator is allowed to anticipate a new phase based on the previous phase,
  1217.   the expected new phase, and early information provided by changes in the
  1218.   C/D, I/O, and MSG signals.  However, the anticipated phase is not valid
  1219.   until the REQ signal is asserted at the beginning of a the next phase.
  1220.  
  1221.                    Table 5-1: Information Transfer Phases
  1222.  
  1223. ==============================================================================
  1224.    Signal
  1225. -----------
  1226. MSG C/D I/O   Phase Name          Direction Of Transfer         Comment
  1227. ------------------------------------------------------------------------------
  1228.  0   0   0    DATA OUT            Initiator to target     \     Data
  1229.  0   0   1    DATA IN             Initiator from target   /     Phase
  1230.  0   1   0    COMMAND             Initiator to target
  1231.  0   1   1    STATUS              Initiator from target
  1232.  1   0   0    *
  1233.  1   0   1    *
  1234.  1   1   0    MESSAGE OUT         Initiator to target     \     Message
  1235.  1   1   1    MESSAGE IN          Initiator from target   /     Phase
  1236. ==============================================================================
  1237.  
  1238.   Key:  0 = False,  1 = True,  * = Reserved for future standardization.
  1239.  
  1240. 5.1.5.3. Wide Data Transfer
  1241.   Wide data transfer is optional and may be used in the DATA phase only if a
  1242. nonzero wide data transfer agreement is in effect.  The messages determine the
  1243. use of wide mode by both SCSI devices and establish a data path width to be
  1244. used during the DATA phase.
  1245.  
  1246.   Wide data transfers of 16- or 32-bits may be established.  Although not
  1247. mandatory, it is recommended that targets and initiators that support 32-bit
  1248. wide transfers also support 16-bit wide transfers as well.  All SCSI devices
  1249. shall support 8-bit data transfers.
  1250.  
  1251.   During 16-bit wide data transfers, the first and second logical data bytes
  1252. for each data phase shall be transferred across the DB(7-0,P) and DB(15-8,P2)
  1253. signals, respectively, on the P cable.  Subsequent pairs of data bytes are
  1254. likewise transferred in parallel across the P cable (see Figure 5-1).
  1255.  
  1256.   During 32-bit wide data transfers, the first and second logical data bytes
  1257. for each data phase shall be transferred across the DB(7-0,P) and DB(15-8,P2)
  1258. signals, respectively, on the P cable, and the third and fourth logical data
  1259. bytes shall be transferred across the DB(23-16,P2) and DB(31-24,P3) signals,
  1260. respectively, on the Q cable.  Subsequent pairs of data bytes are likewise
  1261. transferred in parallel across the P and Q cables (see Figure 5-1).
  1262.  
  1263.     When transferring bytes W, X, Y and Z across the three bus widths,
  1264.     they are transferred as shown below:
  1265.  
  1266.     Hand-  8-bit           16-bit                      32-bit
  1267.     shake                                  ______  _____  _______ ______
  1268.       #   P Cable         P cable         /   Q Cable   \/    P Cable   \
  1269.          +-------+   +---------------+   +-------------------------------+
  1270.       1  |   W   |   |   X   |   W   |   |   Z   |   Y   |   X   |   W   |
  1271.          |-------|   |-------+-------|   +-------------------------------+
  1272.       2  |   X   |   |   Z   |   Y   |    31...24 23...16 15....8 7.....0
  1273.          |-------|   +---------------+               Bit Number
  1274.       3  |   Y   |    15....8 7.....0
  1275.          |-------|
  1276.       4  |   Z   |       Bit Number
  1277.          +-------+
  1278.           7.....0
  1279.  
  1280.          Bit Number
  1281.  
  1282.      NOTE: This figure does not represent how these bytes are stored in
  1283.            the initiator's memory, which may be different.
  1284.  
  1285.  
  1286.                      Figure 5-1: Wide SCSI Byte Ordering
  1287.  
  1288.  
  1289.   If the last data byte transferred for a command does not fall on the DB(15-
  1290. 8,P1) signals for a 16-bit wide transfer or the DB(31-24,P3) signals for a 32-
  1291. bit wide transfer, then the values of the remaining higher-numbered bits are
  1292. undefined.  However, parity bits for these undefined bytes shall be valid for
  1293. whatever data is placed on the bus.
  1294.  
  1295.   To ensure proper data integrity, certain sequence requirements shall be met
  1296. between the REQ/ACK handshakes on the P cable and the REQQ/ACKQ handshakes on
  1297. the Q cable:
  1298.   (1) The REQQ and ACKQ signals shall only be asserted during data phases
  1299. while a nonzero wide data transfer agreement is in effect.  These signals
  1300. shall not be asserted during other phases.
  1301.   (2) The same information transfer mode (asynchronous or synchronous) shall
  1302. be used for both the P cable and the Q cable.  If synchronous data transfer
  1303. mode is in effect, the same REQ/ACK offset and transfer period shall be used
  1304. for both cables.
  1305.   (3) The information transfer procedures defined in the ANSI SCSI-2 Standard
  1306. X3.131-1990 sections 5.1.5.1 Asynchronous Information Transfer and 5.1.5.2
  1307. Synchronous Data Transfer for the P cable (the REQ, ACK, and DB(15-0,P,P1)
  1308. signals) shall also apply to the Q cable (the REQQ, ACKQ, and DB(31-16,P2,P3)
  1309. signals).  The only means available for a target to manage the timing
  1310. relationship between the signals on the two cables is its management of the REQ
  1311. and REQQ signals.  Similarly, the only means for the initiator to manage the
  1312. timing between the two cables is its management of the ACK and ACKQ signals.
  1313.  
  1314.   (4) The target shall ensure that the number of REQ/ACK handshakes and the
  1315. number of REQQ/ACKQ handshakes in a data phase are equal before it changes to
  1316. another phase.  The target shall not change the phase until the ACK and ACKQ
  1317. signals have both become false for the last REQ/ACK handshake and the last
  1318. REQQ/ACKQ handshake.
  1319.  
  1320.   IMPLEMENTORS NOTE:  If any violations of these rules are detected by the
  1321.   target, the target may attempt to end the data phase and return CHECK
  1322.   CONDITION status.  If it is impossible to correctly terminate the data
  1323.   phase, the target may abnormally terminate the I/O process by an unexpected
  1324.   disconnect.  If any violations of these rules are detected by the initiator,
  1325.   the initiator may attempt to send an INITIATOR DETECTED ERROR message to the
  1326.   target.  If the initiator is unable to terminate the I/O process normally,
  1327.   it may generate the reset condition.
  1328.  
  1329. 7. All Device Types
  1330.  
  1331. 7.2. Commands for All Device Types
  1332.  
  1333.   The operation codes for commands that apply to all device types are listed
  1334. in Table 7-1.
  1335.  
  1336.                   Table 7-1: Commands for All Device Types
  1337.  
  1338. ==============================================================================
  1339.                                    Operation
  1340. Command Name                         Code       Type    Section
  1341. ------------------------------------------------------------------------------
  1342. CHANGE DEFINITION                     40h        O       7.2.1
  1343. COMPARE                               39h        O       7.2.2
  1344. COPY                                  18h        O       7.2.3
  1345. COPY AND VERIFY                       3Ah        O       7.2.4
  1346. INQUIRY                               12h        M       7.2.5
  1347. LOG SELECT                            4Ch        O       7.2.6
  1348. LOG SENSE                             4Dh        O       7.2.7
  1349. MODE SELECT(6)                        15h        Z       7.2.8
  1350. MODE SELECT(10)                       55h        Z       7.2.9
  1351. MODE SENSE(6)                         1Ah        Z       7.2.10
  1352. MODE SENSE(10)                        5Ah        Z       7.2.11
  1353. READ BUFFER                           3Ch        O       7.2.12
  1354. RECEIVE DIAGNOSTIC RESULTS            1Ch        O       7.2.13
  1355. REQUEST SENSE                         03h        M       7.2.14
  1356. SEND DIAGNOSTIC                       1Dh        O       7.2.15
  1357. TEST UNIT READY                       00h        M       7.2.16
  1358. WRITE BUFFER                          3Bh        O       7.2.17
  1359. ==============================================================================
  1360.  
  1361.   Key:  M = Command implementation is mandatory.
  1362.         O = Command implementation is optional.
  1363.         Z = Command implementation is device type specific.
  1364.  
  1365. 7.2.3. COPY Command
  1366.  
  1367.  
  1368.                            Table 7-5: COPY Command
  1369.  
  1370. ==============================================================================
  1371.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1372. Byte |        |        |        |        |        |        |        |        |
  1373. ==============================================================================
  1374.  0   |                           Operation Code (18h)                        |
  1375. -----+-----------------------------------------------------------------------|
  1376.  1   | Logical Unit Number      |              Reserved             |  Pad   |
  1377. -----+-----------------------------------------------------------------------|
  1378.  2   | (MSB)                                                                 |
  1379. - - -|- -                        Parameter List Length                    - -|
  1380.  4   |                                                                 (LSB) |
  1381. -----+-----------------------------------------------------------------------|
  1382.  5   |                           Control                                     |
  1383. ==============================================================================
  1384.  
  1385.  
  1386.   The COPY command (Table 7-5) provides a means to copy data from one logical
  1387. unit to another or the same logical unit.  The logical unit that receives and
  1388. performs the COPY command is called the copy manager.  The copy manager is
  1389. responsible for copying data from a logical unit (source device) to a logical
  1390. unit (destination device).  These logical units may reside on different SCSI
  1391. devices or the same SCSI device (in fact all three may be the same logical
  1392. unit).  Some SCSI devices that implement this command may not support copies
  1393. to or from another SCSI device, or may not support third party copies (i.e.,
  1394. both the source and the destination logical units reside on other SCSI
  1395. devices).
  1396.  
  1397.   The pad bit (7.2.3.7) is used in conjunction with the Cat bit (7.2.3.7) in
  1398. the segment descriptors to define what action should be taken when a segment
  1399. of the copy does not fit exactly into an integer number of destination blocks.
  1400.   The parameter list length field specifies the length in bytes of the
  1401. parameters that shall be sent during the DATA OUT phase of the command.  A
  1402. parameter list length of zero indicates that no data shall be transferred.
  1403. This condition shall not be considered as an error.
  1404.  
  1405.   The COPY parameter list (Table 7-6) begins with a four-byte header that
  1406. contains the COPY function code and priority.  Following the header is one or
  1407. more segment descriptors.
  1408.  
  1409.                        Table 7-6: COPY Parameter List
  1410.  
  1411. ==============================================================================
  1412.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1413. Byte |        |        |        |        |        |        |        |        |
  1414. ==============================================================================
  1415.  0   |         COPY Function Code                 |         Priority         |
  1416. -----+-----------------------------------------------------------------------|
  1417.  1   |                           Vendor Specific                             |
  1418. -----+-----------------------------------------------------------------------|
  1419.  2   |                           Reserved                                    |
  1420. -----+-----------------------------------------------------------------------|
  1421.  3   |                           Reserved                                    |
  1422. ==============================================================================
  1423.      |                         Segment Descriptor(s)                         |
  1424. ==============================================================================
  1425.  0 - |                           Segment Descriptor 0                        |
  1426.  xx  |                     (See specific table for length.)                  |
  1427. -----+-----------------------------------------------------------------------|
  1428.      |                                 .                                     |
  1429.      |                                 .                                     |
  1430.      |                                 .                                     |
  1431. -----+-----------------------------------------------------------------------|
  1432.  0 - |                           Segment Descriptor n                        |
  1433.  xx  |                     (See specific table for length.)                  |
  1434. ==============================================================================
  1435.  
  1436.  
  1437.   The COPY function code field defines a specific format for the segment
  1438. descriptors.  The COPY function codes are defined in Table 7-7.  A target need
  1439. not support all function codes for its device type.
  1440.  
  1441.   The priority field of the COPY parameter list establishes the relative
  1442. priority of this COPY command to other commands being executed by the same
  1443. target.  All other commands are assumed to have a priority of 1.  Priority 0
  1444. is the highest priority with increasing values indicating lower priorities.
  1445.  
  1446.   The segment descriptor formats are determined by the COPY function code.
  1447. The segment descriptor format used for write-once devices, CD-ROM devices, and
  1448. optical-memory devices shall be the same as for direct-access devices.  The
  1449. segment descriptor format used for printer devices, communications, and
  1450. processor devices, shall be the same as for sequential-access devices.  Thus a
  1451. COPY from a write-once device to a printer device uses the same segment
  1452. descriptor format as for a COPY from a direct-access device to a sequential-
  1453. access device (see Table 7-7).  The segment descriptor formats are described
  1454. in Tables 7-8 through 7-11.  A maximum of 256 segment descriptors are
  1455. permitted.  The segment descriptors are identified by ascending numbers
  1456. beginning with zero.
  1457.  
  1458.                        Table 7-7: COPY Function Codes
  1459.  
  1460. ==============================================================================
  1461.        Peripheral Device Type                COPY      Segment
  1462.        ----------------------              Function   Descriptor
  1463. Source                 Destination           Code       Table     Comments
  1464. ------------------------------------------------------------------------------
  1465. Direct-Access          Sequential-Access       0         7-8
  1466.  (0,4,5,7)              (1,2,3,9)
  1467. Sequential-Access      Direct-Access           1         7-8
  1468.  (1,3,9)                (0,4,7)
  1469. Direct-Access          Direct-Access           2         7-9
  1470.  (0,4,5,7)              (0,4,7)
  1471. Sequential-Access      Sequential-Access       3         7-10
  1472.  (1,3,9)                (1,2,3,9)
  1473. Sequential-Access      Sequential-Access       4         7-11    Image Copy
  1474.  (1)                    (1)
  1475. Direct-Access          Sequential-Access       5         7-new1  32 address
  1476.  (0,4,5,7)              (1,2,3,9)
  1477. Sequential-Access      Direct-Access           6         7-new1  32 address
  1478.  (1,3,9)                (0,4,7)
  1479. Direct-Access          Direct-Access           7         7-new2  32 address
  1480.  (0,4,5,7)              (0,4,7)
  1481. Sequential-Access      Sequential-Access       8         7-new3  32 address
  1482.  (1,3,9)                (1,2,3,9)
  1483. Sequential-Access      Sequential-Access       9         7-new4  Image Copy;
  1484.  (1)                    (1)                                      32 address
  1485. ==============================================================================
  1486.  
  1487.  
  1488.   The numbers in parenthesis are the peripheral device type codes (see Table
  1489. 7-17).
  1490.  
  1491. COPY function code:  00h        Direct-access to sequential-access
  1492.                      01h        Sequential-access to writable direct-access
  1493.                      02h        Direct-access to writable direct-access
  1494.                      03h        Sequential-access to sequential-access
  1495.                      04h        Sequential-access image copy
  1496.                      05h        Direct-access to sequential-access
  1497.                      06h        Sequential-access to writable direct-access
  1498.                      07h        Direct-access to writable direct-access
  1499.                      08h        Sequential-access to sequential-access
  1500.                      09h        Sequential-access image copy
  1501.                      0Ah - 0Fh  Reserved
  1502.                      10h - 1Fh  Vendor specific
  1503.  
  1504.   For the COMPARE command the destination direct-access device does not have
  1505. to be a writable device.
  1506.  
  1507. 7.2.3.1. Errors Detected by the Managing SCSI Device
  1508.   Two classes of exception conditions may occur during execution of a COPY
  1509. command.  The first class consists of those exception conditions detected by
  1510. the SCSI device that received the COPY command and is managing the execution
  1511. of the command.  These conditions include parity errors while transferring the
  1512. COPY command and status byte, invalid parameters in the COPY command, invalid
  1513. segment descriptors, and inability of the SCSI device controlling the COPY
  1514. functions to continue operating.  In the event of such an exception condition,
  1515. the SCSI device managing the COPY shall:
  1516.   (1) Terminate the COPY command with CHECK CONDITION status.
  1517.   (2) The valid bit in the sense data shall be set to one.  The segment number
  1518. shall contain the number of the segment descriptor being processed at the time
  1519. the exception condition is detected.  The sense key shall contain the sense
  1520. key code describing the exception condition (i.e., not COPY ABORTED).  The
  1521. information field shall contain the difference between the number of blocks
  1522. field in the segment descriptor being processed at the time of the failure and
  1523. the number of blocks successfully copied.  This number is the residue of
  1524. unprocessed blocks remaining for the segment descriptor.
  1525.  
  1526. 7.2.3.2. Errors Detected by a Target
  1527.   The second class of errors consists of exception conditions detected by the
  1528. SCSI device transferring data at the request of the SCSI device managing the
  1529. transfer.  The SCSI device managing the COPY command detects exception
  1530. conditions by receiving CHECK CONDITION status from one of the SCSI devices it
  1531. is managing.  It then shall recover the sense data associated with the
  1532. exception condition.
  1533.  
  1534.   The SCSI device managing the COPY command may also be the source or
  1535. destination SCSI device (or both).  It shall distinguish between a failure of
  1536. the management of the COPY and a failure of the data transfer being requested.
  1537. It shall then create the appropriate sense data internally.
  1538.  
  1539.   After recovering the sense data associated with the detected error, the SCSI
  1540. device managing the COPY command shall:
  1541.   (1) Terminate the COPY command with CHECK CONDITION status.
  1542.   (2) The valid bit in the sense data shall be set to one.  The segment number
  1543. shall contain the number of the segment descriptor being processed at the time
  1544. the exception condition is detected.  The sense key shall be set to COPY
  1545. ABORTED.  The information field shall contain the difference between the
  1546. number of blocks field in the segment descriptor being processed at the time
  1547. of the failure and the number of blocks successfully copied.  This number is
  1548. the residue of unprocessed blocks remaining for the segment descriptor.
  1549.  
  1550.   The first byte of the command-specific information field shall specify the
  1551. starting byte number, relative to the first byte of sense data, of an area
  1552. that contains (unchanged) the source logical unit's status byte and sense
  1553. data.  A zero value indicates that no status byte or sense data is being
  1554. returned for the source logical unit.
  1555.  
  1556.   The second byte of the command-specific information field shall specify the
  1557. starting byte number, relative to the first byte of sense data, of an area
  1558. that contains (unchanged) the destination logical unit's status byte and sense
  1559. data.  A zero value indicates that no status byte or sense data is being
  1560. returned for the destination logical unit.
  1561.  
  1562. 7.2.3.3. COPY Function Code 00h, 01h, 05h, and 06h
  1563.   The format for the segment descriptors for COPY transfers between direct-
  1564. access and sequential-access devices is specified in Table 7-8 and Table
  1565. 7-new1.  These formats are required for COPY function codes 00h or 01h and
  1566. COPY function codes 05h and 06h, respectively.  The segment descriptor may be
  1567. repeated up to 256 times within the parameter list length specified in the
  1568.   command descriptor block.
  1569.  
  1570.       Table 7-8: Segment Descriptor for COPY Function Codes 00h and 01h
  1571.  
  1572. ==============================================================================
  1573.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1574. Byte |        |        |        |        |        |        |        |        |
  1575. ==============================================================================
  1576.  0   | Source Address           |Reserved|  Cat   |     Source LUN           |
  1577. -----+--------------------------+-----------------+--------------------------|
  1578.  1   | Destination Address      |   Reserved      |     Destination LUN      |
  1579. -----+-----------------------------------------------------------------------|
  1580.  2   | (MSB)                                                                 |
  1581. -----+---             Sequential-Access Device Block Length               ---|
  1582.  3   |                                                                 (LSB) |
  1583. -----+-----------------------------------------------------------------------|
  1584.  4   | (MSB)                                                                 |
  1585. - - -|- -             Direct-Access Device Number of Blocks               - -|
  1586.  7   |                                                                 (LSB) |
  1587. -----+-----------------------------------------------------------------------|
  1588.  8   | (MSB)                                                                 |
  1589. - - -|- -             Direct-Access Device Logical Block Address          - -|
  1590. 11   |                                                                 (LSB) |
  1591. ==============================================================================
  1592.  
  1593.  
  1594.          Table 7-new1: Segment Descriptor for Function Codes 05h and 06h
  1595.  
  1596. ==============================================================================
  1597.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1598. Byte |        |        |        |        |        |        |        |        |
  1599. ==============================================================================
  1600.  0   |                             Source Address                            |
  1601. -----+-----------------------------------------------------------------------|
  1602.  1   |  CAT   |   Reserved                        |        Source LUN        |
  1603. -----+-----------------------------------------------------------------------|
  1604.  2   |                          Destination Address                          |
  1605. -----+-----------------------------------------------------------------------|
  1606.  3   |            Reserved                        |     Destination LUN      |
  1607. -----+-----------------------------------------------------------------------|
  1608.  4   |                                Reserved                               |
  1609. -----+-----------------------------------------------------------------------|
  1610.  5   | (MSB)                                                                 |
  1611. -----+---             Sequential-Access Device Block Length               ---|
  1612.  7   |                                                                 (LSB) |
  1613. -----+-----------------------------------------------------------------------|
  1614.  8   | (MSB)                                                                 |
  1615. - - -|- -             Direct-Access Device Number of Blocks               - -|
  1616. 11   |                                                                 (LSB) |
  1617. -----+-----------------------------------------------------------------------|
  1618. 12   | (MSB)                                                                 |
  1619. - - -|- -             Direct-Access Device Logical Block Address          - -|
  1620. 15   |                                                                 (LSB) |
  1621. ==============================================================================
  1622.  
  1623.  
  1624.   The source address and source LUN fields specify the SCSI bus ID and logical
  1625. unit of the device to copy the data from for this segment of the COPY command.
  1626. The destination address and destination LUN fields specify the SCSI bus ID and
  1627. logical unit to copy the data to for this segment of the COPY command.  Some
  1628. SCSI devices may not support third-party COPY in which the copying SCSI device
  1629. is not the source or destination device.  Some SCSI devices only support COPY
  1630. within the SCSI device and not to other SCSI devices.  If an unsupported COPY
  1631. operation is requested, the command shall be terminated with CHECK CONDITION
  1632. status and the sense key shall be set to ILLEGAL REQUEST with an additional
  1633. sense code of INVALID FIELD IN PARAMETER LIST (see 7.2.3.1).
  1634.  
  1635.   A catenate (Cat) bit (optional) of one indicates that the COPY manager shall
  1636. catenate the last source block of a segment with the first source block of the
  1637. next segment if the last source block does not end exactly at the end of the
  1638. destination block.  The definition of a cat bit of zero depends on the setting
  1639. of the pad bit in the command descriptor block  (see 7.2.3.7).
  1640.  
  1641.   The sequential-access device block-length field specifies the block length
  1642. to be used on the sequential-access logical unit during this segment of the
  1643. COPY command.  If the SCSI device managing the COPY knows this block length is
  1644. not supported, the command shall be terminated with CHECK CONDITION status and
  1645. the sense key shall be set to ILLEGAL REQUEST with an additional sense code of
  1646. INVALID FIELD IN PARAMETER LIST . If the block length is found to be invalid
  1647. while executing a read or write operation to the sequential-access device, the
  1648. command shall be terminated with CHECK CONDITION status and the sense key
  1649. shall be set to COPY ABORTED (see 7.2.3.2).
  1650.  
  1651.   The direct-access device number of blocks field specifies the number of
  1652. blocks in the current segment to be copied.  A value of zero indicates that no
  1653. blocks shall be transferred in this segment.
  1654.  
  1655.   The direct-access device logical block address field specifies the starting
  1656. logical block address on the logical unit for this segment.
  1657.  
  1658. 7.2.3.4. COPY Function Code 02hand 07h
  1659.   The format for the segment descriptors for COPY transfers among direct-
  1660. access devices is specified in Table 7-9 and Table 7-new2.  These formats are
  1661. required for COPY function code 02h and COPY function code 07h, respectively.
  1662. The segment descriptor may be repeated up to 256 times within the parameter
  1663. list length specified in the command descriptor block.
  1664.  
  1665.           Table 7-9: Segment Descriptor for COPY Function Code 02h
  1666.  
  1667. ==============================================================================
  1668.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1669. Byte |        |        |        |        |        |        |        |        |
  1670. ==============================================================================
  1671.  0   | Source Address           |   DC   |  Cat   | Source LUN               |
  1672. -----+--------------------------+-----------------+--------------------------|
  1673.  1   | Destination Address      |   Reserved      | Destination LUN          |
  1674. -----+-----------------------------------------------------------------------|
  1675.  2   |                              Reserved                                 |
  1676. -----+-----------------------------------------------------------------------|
  1677.  3   |                              Reserved                                 |
  1678. -----+-----------------------------------------------------------------------|
  1679.  4   | (MSB)                                                                 |
  1680. - - -|- -                Number of Blocks                                 - -|
  1681.  7   |                                                                 (LSB) |
  1682. -----+-----------------------------------------------------------------------|
  1683.  8   | (MSB)                                                                 |
  1684. - - -|- -                Source Logical Block Address                     - -|
  1685. 11   |                                                                 (LSB) |
  1686. -----+-----------------------------------------------------------------------|
  1687. 12   | (MSB)                                                                 |
  1688. - - -|- -                Destination Logical Block Address                - -|
  1689. 15   |                                                                 (LSB) |
  1690. ==============================================================================
  1691.  
  1692.  
  1693.           Table 7-new2: Segment Descriptor for COPY Function Code 07h
  1694.  
  1695. ==============================================================================
  1696.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1697. Byte |        |        |        |        |        |        |        |        |
  1698. ==============================================================================
  1699.  0   |                             Source Address                            |
  1700. -----+-----------------------------------------------------------------------|
  1701.  1   |  CAT   |   Reserved                        |        Source LUN        |
  1702. -----+-----------------------------------------------------------------------|
  1703.  2   |                          Destination Address                          |
  1704. -----+-----------------------------------------------------------------------|
  1705.  3   |  DC    |   Reserved                        |     Destination LUN      |
  1706. -----+-----------------------------------------------------------------------|
  1707.  4   | (MSB)                                                                 |
  1708. - - -|- -                Number of Blocks                                 - -|
  1709.  7   |                                                                 (LSB) |
  1710. -----+-----------------------------------------------------------------------|
  1711.  8   | (MSB)                                                                 |
  1712. - - -|- -                Source Logical Block Address                     - -|
  1713. 11   |                                                                 (LSB) |
  1714. -----+-----------------------------------------------------------------------|
  1715. 12   | (MSB)                                                                 |
  1716. - - -|- -                Destination Logical Block Address                - -|
  1717. 15   |                                                                 (LSB) |
  1718. ==============================================================================
  1719.  
  1720.  
  1721.   See 7.2.3.3 for definitions of the source address, the source LUN, the
  1722. destination address, the destination LUN, and CAT fields.
  1723.  
  1724.   A destination count (DC) bit of zero indicates that the number of blocks
  1725. field refers to the source logical unit.  A DC bit of one indicates that the
  1726. number of blocks field refers to the destination logical unit.
  1727.  
  1728.   The number of blocks field specifies the number of blocks to be transferred
  1729. to or from (depending on the DC bit) the device during this segment.  A value
  1730. of zero indicates that no blocks shall be transferred.
  1731.  
  1732.   The source logical block address field specifies the starting logical block
  1733. address on the source device.
  1734.  
  1735.   The destination logical block address field specifies the starting logical
  1736. block address on the destination device.
  1737.  
  1738. 7.2.3.5. COPY Function Code 03h and 08h
  1739.   The format for the segment descriptors for COPY transfers among sequential-
  1740. access devices is specified by Table 7-10 and Table 7-new3.  These formats are
  1741. required for COPY function code 03h and COPY function code 08h, respectively.
  1742. The segment descriptor may be repeated up to 256 times within the parameter
  1743. list length specified in the command descriptor block.
  1744.  
  1745.           Table 7-10: Segment Descriptor for COPY Function Code 03h
  1746.  
  1747. ==============================================================================
  1748.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1749. Byte |        |        |        |        |        |        |        |        |
  1750. ==============================================================================
  1751.  0   | Source Address           |   DC   |  Cat   | Source LUN               |
  1752. -----+--------------------------+-----------------+--------------------------|
  1753.  1   | Destination Address      |   Reserved      | Destination LUN          |
  1754. -----+-----------------------------------------------------------------------|
  1755.  2   |                              Reserved                                 |
  1756. -----+-----------------------------------------------------------------------|
  1757.  3   |                              Reserved                                 |
  1758. -----+-----------------------------------------------------------------------|
  1759.  4   | (MSB)                                                                 |
  1760. -----+---                        Source Block Length                      ---|
  1761.  5   |                                                                 (LSB) |
  1762. -----+-----------------------------------------------------------------------|
  1763.  6   | (MSB)                                                                 |
  1764. -----+---                        Destination Block Length                 ---|
  1765.  7   |                                                                 (LSB) |
  1766. -----+-----------------------------------------------------------------------|
  1767.  8   | (MSB)                                                                 |
  1768. - - -|- -                        Number of Blocks                         - -|
  1769. 11   |                                                                 (LSB) |
  1770. ==============================================================================
  1771.  
  1772.  
  1773.           Table 7-new3: Segment Descriptor for COPY Function Code 08h
  1774.  
  1775. ==============================================================================
  1776.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1777. Byte |        |        |        |        |        |        |        |        |
  1778. ==============================================================================
  1779.  0   |                             Source Address                            |
  1780. -----+-----------------------------------------------------------------------|
  1781.  1   |  CAT   |   Reserved                        |        Source LUN        |
  1782. -----+-----------------------------------------------------------------------|
  1783.  2   |                          Destination Address                          |
  1784. -----+-----------------------------------------------------------------------|
  1785.  3   |  DC    |   Reserved                        |     Destination LUN      |
  1786. -----+-----------------------------------------------------------------------|
  1787.  4   |                              Reserved                                 |
  1788. -----+-----------------------------------------------------------------------|
  1789.  4   |                              Reserved                                 |
  1790. -----+-----------------------------------------------------------------------|
  1791.  6   | (MSB)                                                                 |
  1792. -----+---                        Source Block Length                      ---|
  1793.  8   |                                                                 (LSB) |
  1794. -----+-----------------------------------------------------------------------|
  1795.  9   | (MSB)                                                                 |
  1796. -----+---                        Destination Block Length                 ---|
  1797. 11   |                                                                 (LSB) |
  1798. -----+-----------------------------------------------------------------------|
  1799. 12   | (MSB)                                                                 |
  1800. - - -|- -                        Number of Blocks                         - -|
  1801. 15   |                                                                 (LSB) |
  1802. ==============================================================================
  1803.  
  1804.  
  1805.   See 7.2.3.3 for definitions of the source address, the source LUN, the
  1806. destination address, the destination LUN, and CAT fields.
  1807.  
  1808.   A destination count (DC) bit of zero indicates that the number of blocks
  1809. field refers to the source logical unit.  A DC bit of one indicates that the
  1810. number of blocks field refers to the destination logical unit.
  1811.  
  1812.   The source block length field specifies the block-length of the source
  1813. device for this segment of the COPY.  A zero in this field indicates variable
  1814. block-length.  For non-zero values, this field shall match the logical unit's
  1815. actual block-length.
  1816.  
  1817.   If block-length mismatches are detected prior to the beginning of the read
  1818. operation by the SCSI device managing the COPY, the command shall be
  1819. terminated with CHECK CONDITION status.  The sense key shall be set to ILLEGAL
  1820. REQUEST and the additional sense code shall be set to INVALID FIELD IN
  1821. PARAMETER LIST (see 7.2.3.1).
  1822.  
  1823.   If the mismatches are detected during the read operation by the COPY
  1824. manager, the command shall be terminated with CHECK CONDITION status.  The
  1825. sense key shall be set to COPY ABORTED (see 7.2.3.2).  and the additional
  1826. sense code shall be set to INVALID FIELD IN PARAMETER LIST.
  1827.  
  1828.   The destination block-length field specifies the block length to be used on
  1829. the destination logical unit during the COPY.  Destination block length
  1830. mismatches are handled in an analogous manner as source block length
  1831. mismatches.
  1832.  
  1833.   The number of blocks field specifies the number of blocks to be transferred
  1834. to or from (depending on the DC bit) the device during this segment.  A value
  1835. of zero indicates that no blocks shall be transferred.
  1836.  
  1837. 7.2.3.6. COPY Function Code 04h and 09h
  1838.   The format for the segment descriptors for image COPY transfers between
  1839. sequential-access devices is specified in Table 7-11 and Table 7-new4.  These
  1840. formats are required for COPY function code 04h and COPY function code 09h,
  1841. respectively.  The segment descriptor may be repeated up to 256 times within
  1842. the parameter list length specified in the command descriptor block.
  1843.  
  1844.           Table 7-11: Segment Descriptor for COPY Function Code 04h
  1845.  
  1846. ==============================================================================
  1847.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1848. Byte |        |        |        |        |        |        |        |        |
  1849. ==============================================================================
  1850.  0   | Source Address           |   Reserved      | Source LUN               |
  1851. -----+--------------------------+-----------------+--------------------------|
  1852.  1   | Destination Address      |   Reserved      | Destination LUN          |
  1853. -----+-----------------------------------------------------------------------|
  1854.  2   |                              Count                                    |
  1855. -----+-----------------------------------------------------------------------|
  1856.  3   |                                                                       |
  1857. - - -|- -                           Reserved                              - -|
  1858.  7   |                                                                       |
  1859. -----+-----------------------------------------------------------------------|
  1860.  8   |                                                                       |
  1861. - - -|- -                           Vendor Specific                       - -|
  1862. 11   |                                                                       |
  1863. ==============================================================================
  1864.  
  1865.  
  1866.           Table 7-new4: Segment Descriptor for COPY Function Code 09h
  1867.  
  1868. ==============================================================================
  1869.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1870. Byte |        |        |        |        |        |        |        |        |
  1871. ==============================================================================
  1872.  0   |                             Source Address                            |
  1873. -----+-----------------------------------------------------------------------|
  1874.  1   |            Reserved                        |        Source LUN        |
  1875. -----+-----------------------------------------------------------------------|
  1876.  2   |                          Destination Address                          |
  1877. -----+-----------------------------------------------------------------------|
  1878.  3   |            Reserved                        |     Destination LUN      |
  1879. -----+-----------------------------------------------------------------------|
  1880.  4   | (MSB)                                                                 |
  1881. - - -|- -                           Count                                 - -|
  1882.  5   |                                                                (LSB)  |
  1883. -----+-----------------------------------------------------------------------|
  1884.  6   |                                                                       |
  1885. - - -|- -                           Reserved                              - -|
  1886.  7   |                                                                       |
  1887. -----+-----------------------------------------------------------------------|
  1888.  8   |                                                                       |
  1889. - - -|- -                           Vendor Specific                       - -|
  1890. 11   |                                                                       |
  1891. ==============================================================================
  1892.  
  1893.  
  1894.   See 7.2.3.3 for definitions of the source address, the source LUN, the
  1895. destination address, the destination LUN, and CAT fields.
  1896.  
  1897.   The image mode COPY command copies an exact image of the source device
  1898. medium to the destination device medium, beginning at their current positions.
  1899. The copy function terminates when the source device:
  1900.   (1) encounters an end-of-partition as defined by the source device
  1901.   (2) encounters an end-of-data as defined by the source device (i.e., BLANK
  1902. CHECK sense key)
  1903.   (3) has copied the number of consecutive filemarks specified in the count
  1904. field from the source device to the destination device
  1905.   (4) has copied the number of consecutive setmarks specified in the count
  1906. field from the source device to the destination device, if the RSmk bit in the
  1907. device configuration page (see 9.3.3.1) is one.
  1908.  
  1909.   A count field of zero indicates that the COPY command shall not terminate
  1910. due to any number of consecutive filemarks or setmarks.  Other error or
  1911. exception conditions (e.g., early-warning end-of-partition on the destination
  1912. device) may cause the COPY command to terminate prior to completion.  In such
  1913. cases, it is not possible to calculate a residue, so the information field in
  1914. the sense data shall be set to zero.
  1915.  
  1916. 7.2.3.7. Copies With Unequal Block Lengths
  1917.   When copying data between two devices with unequal block lengths, it is
  1918. possible for the last source block to not completely fill the last destination
  1919. block for one or more segments in the COPY command.  Two optional bits are
  1920. defined to assist in controlling the copy manager's actions in this
  1921. circumstance.  The Pad bit (in the command descriptor block) and the Cat bit
  1922. (in each applicable segment descriptor) are defined in Table 7-12.
  1923.  
  1924.                     Table 7-12: Pad and Cat Bit Definition
  1925.  
  1926. ==============================================================================
  1927.  Pad Cat   COPY Manager's Action
  1928. ---- ----  -------------------------------------------------------------------
  1929.   0   0    On inexact segments, it is device specific whether the COPY manager
  1930.            rejects the COPY command with CHECK CONDITION status and ILLEGAL
  1931.            REQUEST sense key, the COPY manager writes or accepts short blocks
  1932.            (variable-block mode on sequential-access devices), or the COPY
  1933.            manager adds pad characters (00h) to the destination block or
  1934.            strips pad characters from the source block.
  1935.  
  1936.   1   0    On inexact segments, the COPY manager shall add pad characters
  1937.            (00h) to the destination block to completely fill the block or it
  1938.            shall strip pad characters from the source block, always stopping
  1939.            at the end of a complete block.
  1940.  
  1941.   X   1    The COPY manager shall always write or read complete blocks.  On
  1942.            inexact segments, the remainder of the block contains data from the
  1943.            next segment.  This code is not valid in the last segment of the
  1944.            COPY command.
  1945. ==============================================================================
  1946.  
  1947.  
  1948.   IMPLEMENTORS NOTE:  Use of pad characters is intended to assist in managing
  1949.   COPY commands between devices of different block lengths where partial-block
  1950.   residues may occur.  The initiator which issued the COPY command is
  1951.   responsible for management of these pad areas (i.e., remembering where they
  1952.   are).  One possible method is to write the COPY parameter list information
  1953.   to the destination medium prior to issuing the COPY command for backup and
  1954.   to read this information prior to issuing the COPY command for restore.
  1955.  
  1956.  
  1957. 7.2.5. INQUIRY Command
  1958.  
  1959.  
  1960.                          Table 7-14: INQUIRY Command
  1961.  
  1962. ==============================================================================
  1963.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1964. Byte |        |        |        |        |        |        |        |        |
  1965. ==============================================================================
  1966.  0   |                           Operation Code (12h)                        |
  1967. -----+-----------------------------------------------------------------------|
  1968.  1   | Logical Unit Number      |                  Reserved         |  EVPD  |
  1969. -----+-----------------------------------------------------------------------|
  1970.  2   |                           Page Code                                   |
  1971. -----+-----------------------------------------------------------------------|
  1972.  3   |                           Reserved                                    |
  1973. -----+-----------------------------------------------------------------------|
  1974.  4   |                           Allocation Length                           |
  1975. -----+-----------------------------------------------------------------------|
  1976.  5   |                           Control                                     |
  1977. ==============================================================================
  1978.  
  1979.  
  1980.   The INQUIRY command (Table 7-14) requests that information regarding
  1981. parameters of the target and its attached peripheral device(s) be sent to the
  1982. initiator.  An option allows the initiator to request additional information
  1983. about the target or logical unit (see 7.2.5.2).
  1984.  
  1985.   An enable vital product data (EVPD) bit of one specifies that the target
  1986. shall return the optional vital product data specified by the page code field.
  1987. If the target does not support vital product data and this bit is set to one,
  1988. the target shall return CHECK CONDITION status with the sense key set to
  1989. ILLEGAL REQUEST and an additional sense code of INVALID FIELD IN CDB.
  1990.  
  1991.   An EVPD bit of zero specifies that the target shall return the standard
  1992. INQUIRY data.  If the page code field is not zero, the target shall return
  1993. CHECK CONDITION status with the sense key set to ILLEGAL REQUEST and an
  1994. additional sense code of INVALID FIELD IN CDB.
  1995.  
  1996.   The page code field specifies which page of vital product data information
  1997. the target shall return (see 7.3.4).
  1998.  
  1999.   The INQUIRY command shall return CHECK CONDITION status only when the target
  2000. cannot return the requested INQUIRY data.
  2001.  
  2002.   IMPLEMENTORS NOTE:  It is recommended that the INQUIRY data be returned even
  2003.   though the peripheral device may not be ready for other commands.
  2004.  
  2005.   If an INQUIRY command is received from an initiator with a pending unit
  2006. attention condition (i.e., before the target reports CHECK CONDITION status),
  2007. the target shall perform the INQUIRY command and shall not clear the unit
  2008. attention condition (see 6.9).
  2009.  
  2010.   IMPLEMENTORS NOTES:
  2011.   (1) The INQUIRY command is typically used by the initiator after a reset or
  2012.   power-up condition to determine the device types for system configuration.
  2013.   To minimize delays after a reset or power-up condition the standard INQUIRY
  2014.   data should be available without incurring any media access delays.  If the
  2015.   target does store some of the INQUIRY data on the device it may return zeros
  2016.   or ASCII spaces (20h) in those fields until the data is available from the
  2017.   device.
  2018.   (2) The INQUIRY data may change as the target executes its initialization
  2019.   sequence or in response to a CHANGE DEFINITION command.  For example, the
  2020.   target may contain a minimum command set in its non-volatile memory and may
  2021.   load its final firmware from the device when it becomes ready.  After it has
  2022.   loaded the firmware it may support more options and therefore return
  2023.   different supported options information in the INQUIRY data.
  2024.  
  2025. 7.2.5.1. Standard INQUIRY Data
  2026.   The standard INQUIRY data (Table 7-15) contains 36 required bytes, followed
  2027. by a variable number of vendor-specific parameters.  Bytes 56 through 95, if
  2028. returned, are reserved for future standardization.
  2029.  
  2030.   The standard INQUIRY data format is shown in Table 7-15.
  2031.  
  2032.                    Table 7-15: Standard INQUIRY Data Format
  2033.  
  2034. ==============================================================================
  2035.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  2036. Byte |        |        |        |        |        |        |        |        |
  2037. ==============================================================================
  2038.  0   | Peripheral Qualifier     |           Peripheral Device Type           |
  2039. -----+-----------------------------------------------------------------------|
  2040.  1   |  RMB   |                  Device-Type Modifier                        |
  2041. -----+-----------------------------------------------------------------------|
  2042.  2   |   ISO Version   |       ECMA Version       |  ANSI-Approved Version   |
  2043. -----+-----------------+-----------------------------------------------------|
  2044.  3   |  AENC  | TrmIOP |     Reserved    |         Response Data Format      |
  2045. -----+-----------------------------------------------------------------------|
  2046.  4   |                           Additional Length (n-4)                     |
  2047. -----+-----------------------------------------------------------------------|
  2048.  5   |                           Reserved                                    |
  2049. -----+-----------------------------------------------------------------------|
  2050.  6   |                           Reserved         |ACKQREQQ| Addr32 | Addr16 |
  2051. -----+--------------------------------------------+--------+--------+--------|
  2052.  7   | RelAdr | WBus32 | WBus16 |  Sync  | Linked |Reserved| CmdQue | SftRe  |
  2053. -----+-----------------------------------------------------------------------|
  2054.  8   | (MSB)                                                                 |
  2055. - - -|- -                        Vendor Identification                    - -|
  2056.  15  |                                                                 (LSB) |
  2057. -----+-----------------------------------------------------------------------|
  2058.  16  | (MSB)                                                                 |
  2059. - - -|- -                        Product Identification                   - -|
  2060.  31  |                                                                 (LSB) |
  2061. -----+-----------------------------------------------------------------------|
  2062.  32  | (MSB)                                                                 |
  2063. - - -|- -                        Product Revision Level                   - -|
  2064.  35  |                                                                 (LSB) |
  2065. -----+-----------------------------------------------------------------------|
  2066.  36  |                                                                       |
  2067. - - -|- -                        Vendor Specific                          - -|
  2068.  55  |                                                                       |
  2069. -----+-----------------------------------------------------------------------|
  2070.  56  |                                                                       |
  2071. - - -|- -                        Reserved                                 - -|
  2072.  95  |                                                                       |
  2073. ==============================================================================
  2074.      |                       Vendor-Specific Parameters                      |
  2075. ==============================================================================
  2076. 96 to|                           Vendor-Specific                             |
  2077.  n   |                           Parameter Bytes                             |
  2078. ==============================================================================
  2079.  
  2080.  
  2081.   The peripheral qualifier and peripheral device-type fields identify the
  2082. device currently connected to the logical unit.  If the target is not capable
  2083. of supporting a device on this logical unit, this field shall be set to 7Fh
  2084. (peripheral qualifier set to 011b and peripheral device type set to 1Fh).  The
  2085. peripheral qualifier is defined in Table 7-16 and the peripheral device type
  2086. is defined in Table 7-17.
  2087.  
  2088.                        Table 7-16: Peripheral Qualifier
  2089.  
  2090. ==============================================================================
  2091. Qualifier     Description
  2092. ---------     ----------------------------------------------------------------
  2093.   000b        The specified peripheral device type is currently connected to
  2094.               this logical unit.  If the target cannot determine whether or
  2095.               not a physical device is currently connected it shall also use
  2096.               this peripheral qualifier when returning the INQUIRY data.
  2097.               Note: This peripheral qualifier does not imply that the device
  2098.               is ready for access by the initiator.
  2099.  
  2100.   001b        The target is capable of supporting the specified peripheral
  2101.               device type on this logical unit, however the physical device is
  2102.               not currently connected to this logical unit.
  2103.  
  2104.   010b        Reserved
  2105.  
  2106.   011b        The target is not capable of supporting a physical device on
  2107.               this logical unit.  For this peripheral qualifier the peripheral
  2108.               device type shall be set to 1Fh to provide compatibility with
  2109.               previous versions of SCSI.  All other peripheral device type
  2110.               values are reserved for this peripheral qualifier.
  2111.  
  2112.   1XXb        Vendor specific
  2113. ==============================================================================
  2114.  
  2115.  
  2116.                       Table 7-17: Peripheral Device Type
  2117.  
  2118. ==============================================================================
  2119.   Code         Description
  2120. -----------    ---------------------------------------------------------------
  2121.   00h          Direct-access device (e.g., magnetic disk)
  2122.   01h          Sequential-access device (e.g., magnetic tape)
  2123.   02h          Printer device
  2124.   03h          Processor device
  2125.   04h          Write-once read-multiple device (e.g., some optical disks)
  2126.   05h          CD-ROM device
  2127.   06h          Scanner device
  2128.   07h          Optical memory device (e.g., some optical disks)
  2129.   08h          Medium Changer device (e.g., jukeboxes)
  2130.   09h          Communications device
  2131.   0Ah - 0Bh    Defined by ASC IT8 (Graphics Pre-Press Devices)
  2132.   0Ch - 1Eh    Reserved
  2133.   1Fh          Unknown or no device type
  2134. ==============================================================================
  2135.  
  2136.  
  2137.   A removable medium (RMB) bit of zero indicates that the medium is not
  2138. removable.  A RMB bit of one indicates that the medium is removable.
  2139.  
  2140.   The device-type modifier field was defined in SCSI-1 to permit vendor-
  2141. specific qualification codes of the device type.  This field is retained for
  2142. compatibility with SCSI-1.  Targets that do not support this field should
  2143. return a value of zero.
  2144.  
  2145.   The usage of non-zero code values in the ISO version and ECMA version fields
  2146. are defined by the International Organization for Standardization and the
  2147. European Computer Manufacturers Association, respectively.  A zero code value
  2148. in these fields shall indicate that the target does not claim compliance to
  2149. the ISO version of SCSI (ISO IS 9316) or the ECMA version of SCSI (ECMA-111).
  2150. It is possible to claim compliance to more than one of these SCSI standards.
  2151.  
  2152.   The ANSI-approved version field indicates the implemented version of this
  2153. standard and is defined in Table 7-18.
  2154.  
  2155.                       Table 7-18: ANSI-Approved Version
  2156.  
  2157. ==============================================================================
  2158.   Code        Description
  2159. ------------------------------------------------------------------------------
  2160.    0h      The device might or might not comply to an ANSI-approved standard.
  2161.    1h      The device complies to ANSI X3.131-1986 (SCSI-1).
  2162.    2h      The device complies to this version of SCSI.  This code is reserved
  2163.            to designate this standard upon approval by ANSI.
  2164.    3h - 7h   Reserved
  2165. ==============================================================================
  2166.  
  2167.  
  2168.   The asynchronous event notification capability (AENC) bit indicates that the
  2169. device supports the asynchronous event notification capability as defined in
  2170. 6.5.5.
  2171.   (1) Processor device-type definition:  An AENC bit of one indicates that the
  2172.   processor device is capable of accepting asynchronous event notifications.
  2173.   An AENC bit of zero indicates that the processor device does not support
  2174.   asynchronous event notifications.
  2175.   (2) All other device-types:  This bit is reserved.
  2176.  
  2177.   A terminate I/O process (TrmIOP) bit of one indicates that the device
  2178. supports the TERMINATE I/O PROCESS message as defined in 5.6.22.  A value of
  2179. zero indicates that the device does not support the TERMINATE I/O PROCESS
  2180. message.
  2181.  
  2182.   A response data format value of zero indicates the INQUIRY data format is as
  2183. specified in SCSI-1.  A response data format value of one indicates
  2184. compatibility with some products that were designed prior to the development
  2185. of this standard (i.e., CCS).  A response data format value of two indicates
  2186. that the data shall be in the format specified in this standard.  Response
  2187. data format values greater than two are reserved.
  2188.  
  2189.   The additional length field shall specify the length in bytes of the
  2190. parameters.  If the allocation length of the command descriptor block is too
  2191. small to transfer all of the parameters, the additional length shall not be
  2192. adjusted to reflect the truncation.
  2193.  
  2194.   A ACKQ/REQQ (ACKQREQQ) bit of one indicates that the device supports a
  2195. request and acknowledge date transfer handshake on a Q cable.
  2196.  
  2197.   A wide SCSI address 32 (Addr32) bit of one indicates that the device supports
  2198. 32-bit wide SCSI addresses.  A value of zero indicates that the device does not
  2199. support 32-bit wide SCSI addresses.
  2200.  
  2201.   A wide SCSI address 16 (Addr16) bit of one indicates that the device supports
  2202. 16-bit wide SCSI addresses.  A value of zero indicates that the device does not
  2203. support 16-bit wide SCSI addresses.
  2204.  
  2205.         NOTE:  If the values of both the Addr16 and Addr32 bits are zero
  2206.         the device only supports 8-bit wide SCSI addresses.
  2207.  
  2208.  
  2209.   A relative addressing (RelAdr) bit of one indicates that the device supports
  2210. the relative addressing mode for this logical unit.  If this bit is set to one
  2211. the linked command (Linked) bit shall also be set to one since relative
  2212. addressing can only be used with linked commands.  A RelAdr bit of zero
  2213. indicates the device does not support relative addressing for this logical
  2214. unit.
  2215.  
  2216.   A wide bus 32 (WBus32) bit of one indicates that the device supports 32-bit
  2217. wide data transfers.  A value of zero indicates that the device does not
  2218. support 32-bit wide data transfers.
  2219.  
  2220.   A wide bus 16 (WBus16) bit of one indicates that the device supports 16-bit
  2221. wide data transfers.  A value of zero indicates that the device does not
  2222. support 16-bit wide data transfers.
  2223.  
  2224.   NOTE: If the values of both the WBus16 and WBus32 bits are zero the device
  2225.   only supports 8-bit wide data transfers.
  2226.  
  2227.   A synchronous transfer (Sync) bit of one indicates that the device supports
  2228. synchronous data transfer.  A value of zero indicates the device does not
  2229. support synchronous data transfer.
  2230.  
  2231.   A linked command (Linked) bit of one indicates that the device supports
  2232. linked commands for this logical unit.  A value of zero indicates the device
  2233. does not support linked commands for this logical unit.
  2234.  
  2235.   A command queuing (CmdQue) bit of one indicates that the device supports
  2236. tagged command queuing for this logical unit.  A value of zero indicates the
  2237. device does not support tagged command queuing for this logical unit.
  2238.  
  2239.   A soft reset (SftRe) bit of zero indicates that the device responds to the
  2240. RESET condition with the hard RESET alternative (see 5.2.2.1).  A SftRe bit of
  2241. one indicates that the device responds to the RESET condition with the soft
  2242. RESET alternative (see 5.2.2.2).
  2243.  
  2244.   ASCII data fields shall contain only graphic codes (i.e., code values 20h
  2245. through 7Eh).  Left-aligned fields shall place any unused bytes at the end of
  2246. the field (highest offset) and the unused bytes shall be filled with space
  2247. characters (20h).  Right-aligned fields shall place any unused bytes at the
  2248. start of the field (lowest offset) and the unused bytes shall be filled with
  2249. space characters (20h).
  2250.  
  2251.   The vendor identification field contains eight bytes of ASCII data
  2252. identifying the vendor of the product.  The data shall be left aligned within
  2253. this field.
  2254.  
  2255.   NOTE:  It is intended that this field provide a unique vendor identification
  2256.   of the manufacturer of the SCSI device.  In the absence of a formal
  2257.   registration procedure, X3T9.2 maintains a list of vendor identification
  2258.   codes in use.  Vendors are requested to voluntarily submit their
  2259.   identification codes to X3T9.2 to prevent duplication of codes (see Appendix
  2260.   J).
  2261.  
  2262.   The product identification field contains sixteen bytes of ASCII data as
  2263. defined by the vendor.  The data shall be left-aligned within this field.
  2264.  
  2265.   The product revision level field contains four bytes of ASCII data as
  2266. defined by the vendor.  The data shall be left-aligned within this field.
  2267.  
  2268. 7.2.5.2. Vital Product Data
  2269.   Implementation of vital product data is optional.  The information returned
  2270. consists of configuration data (e.g., vendor identification, product
  2271. identification, model, serial number), manufacturing data (e.g., plant and
  2272. date of manufacture), field replaceable unit data and other vendor- or device-
  2273. specific data.
  2274.  
  2275.   The initiator requests the vital product data information by setting the
  2276. EVPD bit to one and specifying the page code of the desired vital product data
  2277. (see Table 7-72).  If the target does not implement the requested page it
  2278. shall return CHECK CONDITION status.  The a sense key shall be set to ILLEGAL
  2279. REQUEST and the additional sense code shall be set to INVALID FIELD IN CDB.
  2280.  
  2281.   IMPLEMENTORS NOTES:
  2282.   (1) It is recommended that the target have the ability to execute the
  2283.   INQUIRY command even when a device error occurs which prohibits normal
  2284.   command execution.  In such a case, CHECK CONDITION status would be returned
  2285.   for commands other than INQUIRY or REQUEST SENSE.  The sense data returned
  2286.   may contain the field replaceable unit code.  The vital product data would
  2287.   be obtained for the failing device using the INQUIRY command.
  2288.   (2) This standard defines a format which allows device-independent initiator
  2289.   software to display the vital product data returned by the INQUIRY command.
  2290.   For example, the initiator may display the data associated for the field
  2291.   replaceable unit returned in the sense data.  The contents of the data may
  2292.   be vendor-specific; therefore it may not be usable without detailed
  2293.   information about the device.
  2294.   (3) This standard does not define the location or method of storing the
  2295.   vital product data.  The retrieval of the data may require completion of
  2296.   initialization operations within the device which may induce delays before
  2297.   the data is available to the initiator.  Time-critical requirements are an
  2298.   implementation consideration and are not addressed in this standard.
  2299.  
  2300. 8. Direct-Access Devices.
  2301.  
  2302. 8.2. Commands for Direct-Access Devices.
  2303.  
  2304.   The commands for direct-access devices shall be as shown in Tables 8-1 and
  2305. 8-2.
  2306.  
  2307.               Table 8-1: Commands for Direct-Access Devices(1)
  2308.  
  2309. ==============================================================================
  2310.                                             Operation
  2311.  Command Name                                 Code      Type         Section
  2312. ------------------------------------------------------------------------------
  2313.  CHANGE DEFINITION                             40h       O           7.2.1
  2314.  COMPARE                                       39h       O           7.2.2
  2315.  COPY                                          18h       O           7.2.3
  2316.  COPY AND VERIFY                               3Ah       O           7.2.4
  2317.  FORMAT UNIT                                   04h       M           8.2.1
  2318.  INQUIRY                                       12h       M           7.2.5
  2319.  LOCK/UNLOCK CACHE                             36h       O           8.2.2
  2320.  LOG SELECT                                    4Ch       O           7.2.6
  2321.  LOG SENSE                                     4Dh       O           7.2.7
  2322.  MODE SELECT(6)                                15h       O           7.2.8
  2323.  MODE SELECT(10)                               55h       O           7.2.9
  2324.  MODE SENSE(6)                                 1Ah       O           7.2.10
  2325.  MODE SENSE(10)                                5Ah       O           7.2.11
  2326.  PRE-FETCH                                     34h       O           8.2.3
  2327.  PREVENT/ALLOW MEDIUM REMOVAL                  1Eh       O           8.2.4
  2328.  READ(6)                                       08h       M           8.2.5
  2329.  READ(10)                                      28h       M           8.2.6
  2330.  READ BUFFER                                   3Ch       O           7.2.12
  2331.  READ CAPACITY                                 25h       M           8.2.7
  2332.  READ DEFECT DATA                              37h       O           8.2.8
  2333.  READ LONG                                     3Eh       O           8.2.9
  2334.  REASSIGN BLOCKS                               07h       O           8.2.10
  2335.  RECEIVE DIAGNOSTIC RESULTS                    1Ch       O           7.2.13
  2336.  RELEASE(6)                                    17h       M           8.2.11
  2337.  RELEASE(10)                                   57h       MP          8.2.11
  2338.  REQUEST SENSE                                 03h       M           7.2.14
  2339.  RESERVE(6)                                    16h       M           8.2.12
  2340.  RESERVE(10)                                   56h       MP          8.2.12
  2341.  REZERO UNIT                                   01h       O           8.2.13
  2342. ==============================================================================
  2343.  
  2344.   Key: M  =  Command implementation is mandatory.
  2345.        MP =  Command implementation is mandatory on any device that addresses
  2346.              more than 8 devices.
  2347.        O  =  Command implementation is optional.
  2348.  
  2349.               Table 8-2: Commands for Direct-Access Devices(2)
  2350.  
  2351. ==============================================================================
  2352.                                            Operation
  2353. Command Name                                 Code      Type         Section
  2354. ------------------------------------------------------------------------------
  2355. SEARCH DATA EQUAL                             31h       O           8.2.14.1
  2356. SEARCH DATA HIGH                              30h       O           8.2.14.2
  2357. SEARCH DATA LOW                               32h       O           8.2.14.3
  2358. SEEK(6)                                       0Bh       O           8.2.15
  2359. SEEK(10)                                      2Bh       O           8.2.15
  2360. SEND DIAGNOSTIC                               1Dh       M           7.2.15
  2361. SET LIMITS                                    33h       O           8.2.16
  2362. START STOP UNIT                               1Bh       O           8.2.17
  2363. SYNCHRONIZE CACHE                             35h       O           8.2.18
  2364. TEST UNIT READY                               00h       M           7.2.16
  2365. VERIFY                                        2Fh       O           8.2.19
  2366. WRITE(6)                                      0Ah       M           8.2.20
  2367. WRITE(10)                                     2Ah       M           8.2.21
  2368. WRITE AND VERIFY                              2Eh       O           8.2.22
  2369. WRITE BUFFER                                  3Bh       O           7.2.17
  2370. WRITE LONG                                    3Fh       O           8.2.23
  2371. WRITE SAME                                    41h       O           8.2.24
  2372. ==============================================================================
  2373.  
  2374.    Key: M  =  Command implementation is mandatory.
  2375.         MP =  Command implementation is mandatory on any device that addresses
  2376.               more than 8 devices.
  2377.         O  =  Command implementation is optional.
  2378.  
  2379.              The following operation codes are vendor-specific:  02h, 05h,
  2380.          06h, 09h, 0Ch, 0Dh, 0Eh, 0Fh, 10h, 11h, 13h, 14h, 19h, 20h, 21h,
  2381.          22h, 23h, 24h, 26h, 27h, 29h, 2Ch, 2Dh and C0h through FFh.  All
  2382.          remaining operation codes are reserved for future standardization.
  2383.  
  2384. 8.2.11. RELEASE(6) and RELEASE(10) Commands
  2385.  
  2386.  
  2387.                          Table 8-23: RELEASE(6) Command
  2388.  
  2389. ==============================================================================
  2390.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  2391. Byte |        |        |        |        |        |        |        |        |
  2392. ==============================================================================
  2393.  0   |                           Operation Code (17h)                        |
  2394. -----+-----------------------------------------------------------------------|
  2395.  1   | Logical Unit Number      | 3rdPty | Third Party Device ID    | Extent |
  2396. -----+-----------------------------------------------------------------------|
  2397.  2   |                           Reservation Identification                  |
  2398. -----+-----------------------------------------------------------------------|
  2399.  3   |                           Reserved                                    |
  2400. -----+-----------------------------------------------------------------------|
  2401.  4   |                           Reserved                                    |
  2402. -----+-----------------------------------------------------------------------|
  2403.  5   |                           Control                                     |
  2404. ==============================================================================
  2405.  
  2406.  
  2407.                          Table 8-new1: RELEASE(10) Command
  2408.  
  2409. ==============================================================================
  2410.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  2411. Byte |        |        |        |        |        |        |        |        |
  2412. ==============================================================================
  2413.  0   |                           Operation Code (57h)                        |
  2414. -----+-----------------------------------------------------------------------|
  2415.  1   | Logical Unit Number      | 3rdPty |        Reserved          | Extent |
  2416. -----+-----------------------------------------------------------------------|
  2417.  2   |                           Reservation Identification                  |
  2418. -----+-----------------------------------------------------------------------|
  2419.  3   |                           Third Party Device ID                       |
  2420. -----+-----------------------------------------------------------------------|
  2421.  4   |                           Reserved                                    |
  2422. -----+-----------------------------------------------------------------------|
  2423.  5   |                           Reserved                                    |
  2424. -----+-----------------------------------------------------------------------|
  2425.  6   |                           Reserved                                    |
  2426. -----+-----------------------------------------------------------------------|
  2427.  7   |                           Reserved                                    |
  2428. -----+-----------------------------------------------------------------------|
  2429.  8   |                           Reserved                                    |
  2430. -----+-----------------------------------------------------------------------|
  2431.  9   |                           Control Byte                                |
  2432. ==============================================================================
  2433.  
  2434.  
  2435.   The RESERVE and RELEASE commands provide the basic mechanism for contention
  2436. resolution in multiple-initiator systems.  The RELEASE command (Table 8-23) is
  2437. used to release a previously reserved logical unit, or, if the extent release
  2438. option is implemented, to release previously reserved extents within a logical
  2439. unit.  It is not an error for an initiator to attempt to release a reservation
  2440. that is not currently valid.  In this case, the target returns GOOD status
  2441. without altering any other reservation.
  2442.  
  2443. 8.2.11.1. Logical Unit Release (Mandatory)
  2444.   If the extent bit is zero, this command shall cause the target to terminate
  2445. all logical unit and extent reservations that are active from the initiator to
  2446. the specified logical unit.  The reservation ID field in the command
  2447. descriptor block is ignored by the target.
  2448.  
  2449. 8.2.11.2. Extent Release (Optional)
  2450.   If the extent bit is one and the extent release option is not implemented,
  2451. then the RELEASE command shall be terminated with CHECK CONDITION status and
  2452. the sense key shall be set to ILLEGAL REQUEST.  This option shall be
  2453. implemented if the extent reservation option (see 8.2.12.2) is implemented.
  2454.  
  2455.   If the extent bit is one and the extent release option is implemented, this
  2456. command shall cause any reservation from the requesting initiator with a
  2457. matching reservation identification to be terminated.  Other reservations from
  2458. the requesting initiator shall remain in effect.
  2459.  
  2460. 8.2.11.3. Third-Party Release (Mandatory)
  2461.   Third-party release allows an initiator to release a logical unit or extents
  2462. within a logical unit that were previously reserved using third-party
  2463. reservation (see 8.2.12.3).  Third-party release shall be implemented and is
  2464. intended for use in multiple-initiator systems that use the COPY command.
  2465.  
  2466.   If the third-party (3rdPty) bit is zero, then a third-party release is not
  2467. requested.  If the 3rdPty bit is one then the target shall release the
  2468. specified logical unit or extents, but only if the reservation was made using
  2469. a third-party reservation by the initiator that is requesting the release for
  2470. the same SCSI device as specified in the third-party device ID field.
  2471.  
  2472.   If the 3rdPty bit is one the target shall not modify the mode parameters for
  2473. commands received from the third-party device even if the target implements
  2474. the transfer of mode parameters with a third-party RESERVE command.
  2475.  
  2476.   IMPLEMENTORS NOTE:  If a target implements independent storage of mode
  2477.   parameters for each initiator, a third-party RESERVE command copies the
  2478.   current mode parameters for the initiator that sent the RESERVE command to
  2479.   the current mode parameters for the initiator specified as the third-party
  2480.   device (usually a copy master device).  A unit attention condition notifies
  2481.   the third-party of the changed mode parameters due to the the reservation.
  2482.   A successful third-party RELEASE command  does not return the third-party
  2483.   devices' current mode parameters back to their previous values.  The third-
  2484.   party device can issue MODE SENSE and MODE SELECT commands to query and
  2485.   modify the mode parameters.
  2486.  
  2487.  
  2488. 8.2.12. RESERVE(6) and RESERVE(10) Commands
  2489.  
  2490.  
  2491.                          Table 8-24: RESERVE Command
  2492.  
  2493. ==============================================================================
  2494.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  2495. Byte |        |        |        |        |        |        |        |        |
  2496. ==============================================================================
  2497.  0   |                           Operation Code (16h)                        |
  2498. -----+-----------------------------------------------------------------------|
  2499.  1   | Logical Unit Number      | 3rdPty | Third Party Device ID    | Extent |
  2500. -----+-----------------------------------------------------------------------|
  2501.  2   |                           Reservation Identification                  |
  2502. -----+-----------------------------------------------------------------------|
  2503.  3   | (MSB)                                                                 |
  2504. -----+---                        Extent List Length                       ---|
  2505.  4   |                                                                 (LSB) |
  2506. -----+-----------------------------------------------------------------------|
  2507.  5   |                           Control                                     |
  2508. ==============================================================================
  2509.  
  2510.  
  2511.                          Table 8-new2: RESERVE(10) Command
  2512.  
  2513. ==============================================================================
  2514.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  2515. Byte |        |        |        |        |        |        |        |        |
  2516. ==============================================================================
  2517.  0   |                           Operation Code (16h)                        |
  2518. -----+-----------------------------------------------------------------------|
  2519.  1   | Logical Unit Number      | 3rdPty |        Reserved          | Extent |
  2520. -----+-----------------------------------------------------------------------|
  2521.  2   |                           Reservation Identification                  |
  2522. -----+-----------------------------------------------------------------------|
  2523.  3   |                           Third Party Device ID                       |
  2524. -----+-----------------------------------------------------------------------|
  2525.  4   |                           Reserved                                    |
  2526. -----+-----------------------------------------------------------------------|
  2527.  5   |                           Reserved                                    |
  2528. -----+-----------------------------------------------------------------------|
  2529.  6   |                           Reserved                                    |
  2530. -----+-----------------------------------------------------------------------|
  2531.  7   | (MSB)                                                                 |
  2532. -----+---                        Extent List Length                       ---|
  2533.  8   |                                                                 (LSB) |
  2534. -----+-----------------------------------------------------------------------|
  2535.  9   |                           Control Byte                                |
  2536. ==============================================================================
  2537.  
  2538.  
  2539.   The RESERVE and RELEASE commands provide the basic mechanism for contention
  2540. resolution in multiple-initiator systems.  The RESERVE command (Table 8-24) is
  2541. used to reserve a logical unit or, if the extent reservation option is
  2542. implemented, extents within a logical unit.  The third-party reservation
  2543. allows logical units or extents to be reserved for another specified SCSI
  2544. device.
  2545.  
  2546. 8.2.12.1. Logical Unit Reservation (Mandatory).
  2547.  
  2548.   If the extent bit is zero, this command shall request that the entire
  2549. logical unit be reserved for the exclusive use of the initiator until the
  2550. reservation is superseded by another valid RESERVE command from the initiator
  2551. that made the reservation or until released by a RELEASE command from the same
  2552. initiator that made the reservation, by a BUS DEVICE RESET message from any
  2553. initiator, by a hard RESET condition, or by a power on cycle.  A logical unit
  2554. reservation shall not be granted if the logical unit or any extent is reserved
  2555. by another initiator.  It shall be permissible for an initiator to reserve a
  2556. logical unit that is currently reserved by that initiator.  If the extent bit
  2557. is zero, the reservation identification and the extent list length shall be
  2558. ignored.
  2559.  
  2560.   If the logical unit, or any extent within the logical unit is reserved for
  2561. another initiator, the target shall return RESERVATION CONFLICT status.
  2562.  
  2563.   If, after honoring the reservation, any other initiator attempts to perform
  2564. any command on the reserved logical unit other than an INQUIRY command, a
  2565. REQUEST SENSE command, an ALLOW MEDIUM REMOVAL, or a RELEASE command, which
  2566. shall be ignored, then the command shall be rejected with RESERVATION CONFLICT
  2567. status.
  2568.  
  2569. 8.2.12.2. Extent Reservation (Optional)
  2570.   The reservation identification field provides a means for an initiator to
  2571. identify each extent reservation.  This allows an initiator in a multiple
  2572. tasking environment, to have multiple reservations outstanding.  The
  2573. reservation identification is used in the RELEASE command to specify which
  2574. reservation is to be released.  It is also used in superseding RESERVE
  2575. commands to specify which reservation is to be superseded.
  2576.  
  2577.   If the extent reservation option is implemented, then the extent release
  2578. option (see 8.2.11.2) shall also be implemented.  These options permit
  2579. multiple extents within the logical unit to be reserved, each with a separate
  2580. reservation type.
  2581.  
  2582.   If the extent bit is one, and the extent reservation option is implemented,
  2583. then the target shall process the reservation request as follows:
  2584.   (1) The extent list shall be checked for the number of extents in the
  2585. reservation request.  If the extent list length is zero, no current
  2586. reservations shall be changed, no new reservations shall be created, and this
  2587. condition shall not be treated as an error.  If the extent list contains more
  2588. extents than are supported on the logical unit, the command shall be
  2589. terminated with CHECK CONDITION status and the sense key shall be set to
  2590. ILLEGAL REQUEST.  If the extent list contains more extents than are currently
  2591. available on the logical unit, then the target shall return a RESERVATION
  2592. CONFLICT status.
  2593.   (2) The extent list shall be checked for valid extent logical block
  2594. addresses.  If any logical block address is invalid for this logical unit, the
  2595. command shall be terminated with CHECK CONDITION status and the sense key
  2596. shall be set to ILLEGAL REQUEST.  The extent list shall be checked for invalid
  2597. extent overlaps (as defined by reservation type) with other extent descriptors
  2598. in the extent list and if invalid overlaps are found, the command shall be
  2599. terminated with CHECK CONDITION status and the sense key shall be set to
  2600. ILLEGAL REQUEST.
  2601.   (3) If the requested reservation does not conflict with an existing
  2602. reservation, the extents specified shall be reserved until superseded by
  2603. another valid RESERVE command from the initiator that made the reservation or
  2604. until released by a RELEASE command from the same initiator, by a BUS DEVICE
  2605. RESET message from any initiator, or by a hard RESET condition.  If either of
  2606. the last two conditions occur, the next command from each initiator shall be
  2607. terminated with CHECK CONDITION status and the sense key shall be set to UNIT
  2608. ATTENTION.
  2609.   (4) If the reservation request conflicts with an existing reservation, then
  2610. the target shall return a RESERVATION CONFLICT status.
  2611.  
  2612.   If the extent bit is one, and the extent reservation option is not
  2613. implemented, then the RESERVE command shall be rejected with CHECK CONDITION
  2614. status and the sense key shall be set to ILLEGAL REQUEST.
  2615.  
  2616.                 Table 8-25: Data Format of Extent Descriptors
  2617.  
  2618. ==============================================================================
  2619.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  2620. Byte |        |        |        |        |        |        |        |        |
  2621. ==============================================================================
  2622.  0   |               Reserved                     | RelAdr | Reservation Type|
  2623. -----+-----------------------------------------------------------------------|
  2624.  1   | (MSB)                                                                 |
  2625. - - -|- -                        Number of Blocks                         - -|
  2626.  3   |                                                                 (LSB) |
  2627. -----+-----------------------------------------------------------------------|
  2628.  4   | (MSB)                                                                 |
  2629. - - -|- -                        Logical Block Address                    - -|
  2630.  7   |                                                                 (LSB) |
  2631. ==============================================================================
  2632.  
  2633.   The size of the extent list shall be defined by the extent list length
  2634. field.  The extent list shall consist of zero or more descriptors as shown in
  2635. Table 8-25.  Each extent descriptor defines an extent beginning at the
  2636. specified logical block address for the specified number of blocks.  If the
  2637. number of blocks is zero, the extent shall begin at the specified logical
  2638. block address and continue through the last logical block address on the
  2639. logical unit.
  2640.  
  2641.   The reservation type field shall determine the type of reservation to be
  2642. effected for each extent.  Four types of reservations are possible as follows:
  2643.  
  2644.                         DB(1) DB(0)  Reservation Type
  2645.                         ----- -----  ----------------
  2646.                           1     0    Read Exclusive
  2647.                           0     1    Write Exclusive
  2648.                           1     1    Exclusive Access
  2649.                           0     0    Read Shared
  2650.  
  2651.   Read Exclusive.  While this reservation is active, no other initiator shall
  2652. be permitted read operations to the indicated extent.  This reservation shall
  2653. not inhibit write operations from any initiator or conflict with a write
  2654. exclusive reservation; however, read exclusive, exclusive access, and read
  2655. shared reservations that overlap this extent shall conflict with this
  2656. reservation.
  2657.  
  2658.   Write Exclusive.  While this reservation is active, no other initiator shall
  2659. be permitted write operations to the indicated extent.  This reservation shall
  2660. not inhibit read operations from any initiator or conflict with a read
  2661. exclusive reservation from any initiator.  This reservation shall conflict
  2662. with write exclusive, exclusive access, and read shared reservations that
  2663. overlap this extent.
  2664.  
  2665.   Exclusive Access.  While this reservation is active, no other initiator
  2666. shall be permitted any access to the indicated extent.  All reservation types
  2667. that overlap this extent shall conflict with this reservation.
  2668.  
  2669.   Read Shared.  While this reservation is active, no write operations shall be
  2670. permitted by any initiator to the indicated extent.  This reservation shall
  2671. not inhibit read operations from any initiator or conflict with a read shared
  2672. reservation.  Read exclusive, write exclusive, and exclusive access
  2673. reservations that overlap with this extent shall conflict with this
  2674. reservation.
  2675.  
  2676.   If the relative address bit is one, the logical block address in the extent
  2677. descriptor shall be treated as a two's complement displacement.  This
  2678. displacement shall be added to the logical block address last accessed on the
  2679. logical unit to form the logical block address for this extent.  This feature
  2680. is only available when linking commands and requires that a previous command
  2681. in the linked group has accessed a logical block on the logical unit; if not,
  2682. the RESERVE command shall be terminated with CHECK CONDITION status and the
  2683. sense key shall be set to ILLEGAL REQUEST.
  2684.  
  2685.   If an initiator attempts a command to a logical block that has been reserved
  2686. and that access is prohibited by the reservation, the command shall not be
  2687. performed and the command shall be terminated with a RESERVATION CONFLICT
  2688. status.  If a reservation conflict precludes any part of the command, none of
  2689. the command shall be performed.  COPY commands shall be terminated with CHECK
  2690. CONDITION status and the sense key shall be set to DATA PROTECT if any part of
  2691. the copy operation is prohibited by an active reservation.  If any extent in a
  2692. logical unit is reserved in any way, by any initiator, a FORMAT UNIT command
  2693. shall be rejected with a RESERVATION CONFLICT status.
  2694.  
  2695. 8.2.12.3. Third Party Reservation (Mandatory).
  2696.   The third-party reservation for the RESERVE command allows an initiator to
  2697. reserve a logical unit or extents within a logical unit for another SCSI
  2698. device.  This is intended for use in multiple-initiator systems that use the
  2699. COPY command.  Third-party reservation is required.
  2700.  
  2701.   If the third-party (3rdPty) bit is zero, then a third-party reservation is
  2702. not requested.  If the 3rdPty bit is one then the target shall reserve the
  2703. specified logical unit or extents for the SCSI device specified in the third-
  2704. party device ID field.  The target shall preserve the reservation until it is
  2705. superseded by another valid RESERVE command from the initiator that made the
  2706. reservation or until it is released by the same initiator, by a BUS DEVICE
  2707. reset message from any initiator, or a hard reset condition.  The target shall
  2708. ignore any attempt to release the reservation made by any other initiator.
  2709.  
  2710.   If independent sets of parameters are implemented, a third party reservation
  2711. shall cause the target to transfer the set of parameters in effect for the
  2712. initiator of the RESERVE command to the parameters used for commands from the
  2713. third party device.  Any subsequent command issued by the third-party device
  2714. is executed according to the mode parameters in effect for the initiator that
  2715. sent the RESERVE command.
  2716.  
  2717.   IMPLEMENTORS NOTE:  This transfer of the mode parameters is applicable to
  2718.   target devices which store mode information independently for different
  2719.   initiators.  This mechanism allows an initiator to set the mode parameters
  2720.   of a target for the use of a copy master (i.e., the third-party device).
  2721.   The third-party copy master may subsequently issue a MODE SELECT command to
  2722.   modify the mode parameters.
  2723.  
  2724. 8.2.12.4. Superseding Reservations (Mandatory)
  2725.   An initiator that holds a current reservation (unit or extent) may modify
  2726. that reservation by issuing another RESERVE command (unit or extent) to the
  2727. same logical unit.  The superseding RESERVE command shall release the previous
  2728. reservation state (unit or extent) when the new reservation request is
  2729. granted.  If the superseding reservation is for an extent reservation and the
  2730. current reservation is also an extent reservation, the current extent
  2731. reservation identification value is used for the superseding reservation.  The
  2732. current reservation shall not be modified if the superseding reservation
  2733. request cannot be granted.  If the superseding reservation cannot be granted
  2734. because of conflicts with a previous reservation (other than the reservation
  2735. being superseded), then the target shall return RESERVATION CONFLICT status.
  2736.  
  2737.   IMPLEMENTORS NOTE:  Superseding reservations allow the SCSI device ID to be
  2738.   changed on a reservation using the third-party reservation option.  This
  2739.   capability is necessary for certain situations when using COMPARE, COPY, and
  2740.   COPY AND VERIFY commands.
  2741.  
  2742. 9. Sequential-Access Devices.
  2743.  
  2744. 9.2. Commands for Sequential-Access Devices.
  2745.  
  2746.   The commands for Sequential-access devices shall be as shown in Table 9-1.
  2747.  
  2748.               Table 9-1: Commands for Sequential-Access Devices
  2749. ==============================================================================
  2750.                                             Operation
  2751.  Command Name                                 Code      Type         Section
  2752. ------------------------------------------------------------------------------
  2753.  CHANGE DEFINITION                             40h       O           7.2.1
  2754.  COMPARE                                       39h       O           7.2.2
  2755.  COPY                                          18h       O           7.2.3
  2756.  COPY AND VERIFY                               3Ah       O           7.2.4
  2757.  ERASE                                         19h       M           9.2.1
  2758.  INQUIRY                                       12h       M           7.2.5
  2759.  LOAD UNLOAD                                   1Bh       O           9.2.2
  2760.  LOCATE                                        2Bh       O           9.2.3
  2761.  LOG SELECT                                    4Ch       O           7.2.6
  2762.  LOG SENSE                                     4Dh       O           7.2.7
  2763.  MODE SELECT(6)                                15h       M           7.2.8
  2764.  MODE SELECT(10)                               55h       O           7.2.9
  2765.  MODE SENSE(6)                                 1Ah       M           7.2.10
  2766.  MODE SENSE(10)                                5Ah       O           7.2.11
  2767.  PREVENT/ALLOW MEDIUM REMOVAL                  1Eh       O           8.2.4
  2768.  READ                                          08h       M           9.2.4
  2769.  READ BLOCK LIMITS                             05h       M           9.2.5
  2770.  READ BUFFER                                   3Ch       O           7.2.12
  2771.  READ POSITION                                 34h       O           9.2.6
  2772.  READ REVERSE                                  0Fh       O           9.2.7
  2773.  RECEIVE DIAGNOSTIC RESULTS                    1Ch       O           7.2.13
  2774.  RECOVER BUFFERED DATA                         14h       O           9.2.8
  2775.  RELEASE UNIT (6)                              17h       M           9.2.9
  2776.  RELEASE UNIT (10)                             57h       MP          9.2.9
  2777.  REQUEST SENSE                                 03h       M           7.2.14
  2778.  RESERVE UNIT (6)                              16h       M           9.2.10
  2779.  RESERVE UNIT (10)                             56h       MP          9.2.10
  2780.  REWIND                                        01h       M           9.2.11
  2781.  SEND DIAGNOSTIC                               1Dh       M           7.2.15
  2782.  SPACE                                         11h       M           9.2.12
  2783.  TEST UNIT READY                               00h       M           7.2.16
  2784.  VERIFY                                        13h       O           9.2.13
  2785.  WRITE                                         0Ah       M           9.2.14
  2786.  WRITE BUFFER                                  3Bh       O           7.2.17
  2787.  WRITE FILEMARKS                               10H       M           9.2.15
  2788. ==============================================================================
  2789.  
  2790.    Key: M  =  Command implementation is mandatory.
  2791.         MP =  Command implementation is mandatory on any device that addresses
  2792.               more than 8 devices.
  2793.         O  =  Command implementation is optional.
  2794.  
  2795.              The following operation codes are vendor-specific:  02h,
  2796.          06h, 07h, 09h, 0Ch, 0Dh, 0Eh.  All other command codes for
  2797.          sequential-access devices are reserved for future standardization.
  2798.  
  2799.  
  2800. 9.2.9. RELEASE UNIT(6) and RELEASE UNIT(10) Commands
  2801.  
  2802.  
  2803.                        Table 9-12: RELEASE UNIT(6) Command
  2804.  
  2805. ==============================================================================
  2806.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  2807. Byte |        |        |        |        |        |        |        |        |
  2808. ==============================================================================
  2809.  0   |                           Operation Code (17h)                        |
  2810. -----+-----------------------------------------------------------------------|
  2811.  1   | Logical Unit Number      | 3rdPty | Third Party Device ID    |Reserved|
  2812. -----+-----------------------------------------------------------------------|
  2813.  2   |                           Reserved                                    |
  2814. -----+-----------------------------------------------------------------------|
  2815.  3   |                           Reserved                                    |
  2816. -----+-----------------------------------------------------------------------|
  2817.  4   |                           Reserved                                    |
  2818. -----+-----------------------------------------------------------------------|
  2819.  5   |                           Control                                     |
  2820. ==============================================================================
  2821.  
  2822.  
  2823.                          Table 9-new1: RELEASE(10) Command
  2824.  
  2825. ==============================================================================
  2826.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  2827. Byte |        |        |        |        |        |        |        |        |
  2828. ==============================================================================
  2829.  0   |                           Operation Code (57h)                        |
  2830. -----+-----------------------------------------------------------------------|
  2831.  1   | Logical Unit Number      | 3rdPty |              Reserved             |
  2832. -----+-----------------------------------------------------------------------|
  2833.  2   |                           Reserved                                    |
  2834. -----+-----------------------------------------------------------------------|
  2835.  3   |                           Third Party Device ID                       |
  2836. -----+-----------------------------------------------------------------------|
  2837.  4   |                           Reserved                                    |
  2838. -----+-----------------------------------------------------------------------|
  2839.  5   |                           Reserved                                    |
  2840. -----+-----------------------------------------------------------------------|
  2841.  6   |                           Reserved                                    |
  2842. -----+-----------------------------------------------------------------------|
  2843.  7   |                           Reserved                                    |
  2844. -----+-----------------------------------------------------------------------|
  2845.  8   |                           Reserved                                    |
  2846. -----+-----------------------------------------------------------------------|
  2847.  9   |                           Control Byte                                |
  2848. ==============================================================================
  2849.  
  2850.  
  2851.   The RESERVE UNIT and RELEASE UNIT commands provide the basic mechanism for
  2852. contention resolution in multiple-initiator systems.  The RELEASE UNIT command
  2853. (Table 9-12) is used to release previously reserved logical units for the
  2854. requesting initiator, or if it is a third-party release, to another specified
  2855. SCSI device.
  2856.  
  2857.   If a valid reservation exists for the I_T_L nexus, the target shall release
  2858. the reservation and return GOOD status.
  2859.  
  2860.   It is not an error to attempt to release a reservation that is not currently
  2861. valid.  In this case, the target shall return GOOD status without altering any
  2862. other reservation.
  2863.  
  2864. 9.2.9.1. Third-Party Release 
  2865.   Third-party release allows an initiator to release a logical unit that was
  2866. previously reserved using a third-party reservation (see 9.2.10.1).
  2867.  
  2868.   If the third party (3rdPty) bit is zero, then a third-party release is not
  2869. requested.  If the 3rdPty bit is one, and if the reservation was made using a
  2870. third-party reservation by the initiator that is requesting the release for
  2871. the same SCSI device as specified in the third-party device ID, then the
  2872. target shall release the reservation.
  2873.  
  2874.   If the 3rdPty bit is one, the target shall not modify the mode parameters
  2875. for commands received from the third-party device even if the target
  2876. implements the transfer of mode parameters with a third-party RESERVE UNIT
  2877. command.
  2878.  
  2879.   IMPLEMENTORS NOTE:  When a target implements independent storage of mode
  2880.   parameters for each initiator, a third-party RESERVE UNIT command effects a
  2881.   transfer of the current mode parameters.  Those set up by the initiator of
  2882.   the RESERVE UNIT are to be set as the mode parameters used for commands from
  2883.   the third-party device (usually a copy master device).  A unit attention
  2884.   condition notifies the third-party device of the changed mode parameters.  A
  2885.   successful third-party RELEASE UNIT command leaves the transferred
  2886.   parameters intact.  The third-party device can issue MODE SENSE and MODE
  2887.   SELECT commands to query and modify the mode parameters.
  2888.  
  2889.  
  2890. 9.2.10. RESERVE UNIT(6) and RESERVE UNIT(10) Commands
  2891.  
  2892.  
  2893.                        Table 9-13: RESERVE UNIT(6) Command
  2894.  
  2895. ==============================================================================
  2896.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  2897. Byte |        |        |        |        |        |        |        |        |
  2898. ==============================================================================
  2899.  0   |                           Operation Code (16h)                        |
  2900. -----+-----------------------------------------------------------------------|
  2901.  1   | Logical Unit Number      | 3rdPty | Third Party Device ID    |Reserved|
  2902. -----+-----------------------------------------------------------------------|
  2903.  2   |                           Reserved                                    |
  2904. -----+-----------------------------------------------------------------------|
  2905.  3   |                           Reserved                                    |
  2906. -----+-----------------------------------------------------------------------|
  2907.  4   |                           Reserved                                    |
  2908. -----+-----------------------------------------------------------------------|
  2909.  5   |                           Control                                     |
  2910. ==============================================================================
  2911.  
  2912.  
  2913.                          Table 9-new2: RESERVE(10) Command
  2914.  
  2915. ==============================================================================
  2916.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  2917. Byte |        |        |        |        |        |        |        |        |
  2918. ==============================================================================
  2919.  0   |                           Operation Code (16h)                        |
  2920. -----+-----------------------------------------------------------------------|
  2921.  1   | Logical Unit Number      | 3rdPty |              Reserved             |
  2922. -----+-----------------------------------------------------------------------|
  2923.  2   |                           Reserved                                    |
  2924. -----+-----------------------------------------------------------------------|
  2925.  3   |                           Third Party Device ID                       |
  2926. -----+-----------------------------------------------------------------------|
  2927.  4   |                           Reserved                                    |
  2928. -----+-----------------------------------------------------------------------|
  2929.  5   |                           Reserved                                    |
  2930. -----+-----------------------------------------------------------------------|
  2931.  6   |                           Reserved                                    |
  2932. -----+-----------------------------------------------------------------------|
  2933.  7   | (MSB)                                                                 |
  2934. -----+---                        Extent List Length                       ---|
  2935.  8   |                                                                 (LSB) |
  2936. -----+-----------------------------------------------------------------------|
  2937.  9   |                           Control Byte                                |
  2938. ==============================================================================
  2939.  
  2940.  
  2941.   The RESERVE UNIT and RELEASE UNIT commands provide the basic mechanism for
  2942. contention resolution in multiple-initiator systems.  The RESERVE UNIT command
  2943. (Table 9-13) is used to reserve logical units for the exclusive use of the
  2944. requesting initiator, or if it is a third-party reservation, to another
  2945. specified SCSI device.
  2946.  
  2947.   This command requests that the entire logical unit be reserved for the
  2948. exclusive use of the initiator until the reservation is superseded by another
  2949. valid RESERVE UNIT command from the initiator that made the reservation or
  2950. until released by a RELEASE UNIT command from the same initiator that made the
  2951. reservation, by a BUS DEVICE RESET message from any initiator, by a hard reset
  2952. condition, or by a power on cycle.  The reservation shall not be granted if
  2953. the logical unit is reserved by another initiator.  It shall be permissible
  2954. for an initiator to reserve a logical unit that is currently reserved by that
  2955. initiator.
  2956.  
  2957.   If the logical unit is reserved for another initiator, the target shall
  2958. return RESERVATION CONFLICT status.
  2959.  
  2960.   If, after honoring the reservation, any other initiator attempts to perform
  2961. any command on the reserved logical unit other than an INQUIRY command, a
  2962. REQUEST SENSE command, or a RELEASE UNIT command, which shall be ignored, then
  2963. the command shall be rejected with RESERVATION CONFLICT status.
  2964.  
  2965.  
  2966. 9.2.10.1. Third-Party Reservation
  2967.   Third-party reservation allows an initiator to reserve a logical unit for
  2968. another SCSI device.  This is intended for use in multiple-initiator systems
  2969. that use the COPY command.
  2970.  
  2971.   If the third-party (3rdPty) bit is zero, a third-party reservation is not
  2972. requested.  If the 3rdPty bit is one the target shall reserve the logical unit
  2973. for the SCSI device specified in the third-party device ID field. The target
  2974. shall preserve the reservation until it is superseded by another valid RESERVE
  2975. UNIT command from the initiator that made the reservation or until it is
  2976. released by the same initiator, by a BUS DEVICE RESET message from any
  2977. initiator, or a hard reset condition.  The target shall ignore any attempt to
  2978. release the reservation made by any other initiator.
  2979.  
  2980.   If independent sets of parameters are implemented, a third party reservation
  2981. shall cause the target to transfer the set of parameters in effect for the
  2982. initiator of the RESERVE command to the parameters used for commands from the
  2983. third party device.  Any subsequent command issued by the third-party device
  2984. is executed according to the mode parameters in effect for the initiator
  2985. that sent the RESERVE command.
  2986.  
  2987.   If independent sets of parameters are implemented, a third party reservation
  2988. shall cause the target to transfer the set of parameters in effect for the
  2989. initiator of the RESERVE command to the parameters used for commands from the
  2990. third party device.  Any subsequent command issued by the third-party device
  2991. is executed according to the mode parameters in effect for the initiator
  2992. that sent the RESERVE command.
  2993.  
  2994.   IMPLEMENTORS NOTE:  This transfer of the mode parameters is applicable to
  2995.   target devices which store mode information independently for different
  2996.   initiators.  This mechanism allows an initiator to set the mode parameters
  2997.   of a target for the use of a copy master (i.e., the third-party device).
  2998.   The third-party copy master may subsequently issue a MODE SELECT command to
  2999.   modify the mode parameters.
  3000.  
  3001. 9.2.10.2. Superseding Reservations
  3002.   An initiator that currently has a logical unit reserved may modify the
  3003. current reservation by issuing another RESERVE UNIT command to the same
  3004. logical unit.  The superseding reservation shall release the current
  3005. reservation if the superseding reservation request is granted.  The current
  3006. reservation shall not be modified if the superseding reservation request
  3007. cannot be granted.  If the superseding reservation cannot be granted because
  3008. of conflicts with a previous reservation (other than the current reservation),
  3009. then the target shall return RESERVATION CONFLICT status.
  3010.  
  3011.   IMPLEMENTORS NOTE:  Superseding reservations allow the SCSI device ID to be
  3012.   changed on a reservation using the third-party reservation option.  This
  3013.   capability is necessary for certain situations when using COMPARE, COPY, and
  3014.   COPY AND VERIFY commands.
  3015.  
  3016. 10. Commands for Printer Devices
  3017.  
  3018. 10.2. Commands for Printer Devices
  3019.  
  3020.  
  3021.   The commands for printer devices shall be as shown in Table 10-1.
  3022.  
  3023.                    Table 10-1: Commands for Printer Devices
  3024.  
  3025. ==============================================================================
  3026.                                 Operation
  3027. Command Name                       Code   Type    Section  Page
  3028. ------------------------------------------------------------------------------
  3029. CHANGE DEFINITION                  40h      O      7.2.1
  3030. COMPARE                            39h      O      7.2.2
  3031. COPY                               18h      O      7.2.3
  3032. COPY AND VERIFY                    3Ah      O      7.2.4
  3033. FORMAT                             04h      O     10.2.1
  3034. INQUIRY                            12h      M      7.2.5
  3035. LOG SELECT                         4Ch      O      7.2.6
  3036. LOG SENSE                          4Dh      O      7.2.7
  3037. MODE SELECT(6)                     15h      O      7.2.8
  3038. MODE SELECT(10)                    55h      O      7.2.9
  3039. MODE SENSE(6)                      1Ah      O      7.2.10
  3040. MODE SENSE(10)                     5Ah      O      7.2.11
  3041. PRINT                              0Ah      M     10.2.2
  3042. READ BUFFER                        3Ch      O      7.2.12
  3043. RECEIVE DIAGNOSTIC RESULTS         1Ch      O      7.2.13
  3044. RECOVER BUFFERED DATA              14h      O     10.2.3
  3045. RELEASE UNIT (6)                   17h      M      9.2.9
  3046. RELEASE UNIT (10)                  57h      MP     9.2.9
  3047. REQUEST SENSE                      03h      M      7.2.14
  3048. RESERVE UNIT (6)                   16h      M      9.2.10
  3049. RESERVE UNIT (10)                  56h      MP     9.2.10
  3050. SEND DIAGNOSTIC                    1Dh      M      7.2.15
  3051. SLEW AND PRINT                     0Bh      O     10.2.4
  3052. STOP PRINT                         1Bh      O     10.2.5
  3053. SYNCHRONIZE BUFFER                 10h      O     10.2.6
  3054. TEST UNIT READY                    00h      M      7.2.16
  3055. WRITE BUFFER                       3Bh      O      7.2.17
  3056. ==============================================================================
  3057.  
  3058.   Key: M  =  Command implementation is mandatory.
  3059.        MP =  Command implementation is mandatory on any device that addresses
  3060.              more than 8 devices.
  3061.        O  =  Command implementation is optional.
  3062.  
  3063.   The following operation codes are vendor specific: 01h, 02h, 05h, 06h, 07h,
  3064. 08h, 09h, 0Ch, 0Dh, 0Eh, 0Fh, 11h, 13h, 19h, and C0h through FFh.  All
  3065. remaining operation codes for printer devices are reserved for future
  3066. standardization.
  3067.  
  3068. 12. Write-Once Devices
  3069.  
  3070. 12.2. Commands for Write-Once Devices
  3071.  
  3072.   The commands for write-once devices shall be as shown in Table 12-1 and
  3073. Table 12-2.
  3074.  
  3075.                 Table 12-1: Commands for Write-Once Devices(1)
  3076.  
  3077. ==============================================================================
  3078. Command Name                       Code    Type    Section
  3079. ------------------------------------------------------------------------------
  3080. CHANGE DEFINITION                  40h       O     7.2.1
  3081. COMPARE                            39h       O     7.2.2
  3082. COPY                               18h       O     7.2.3
  3083. COPY AND VERIFY                    3Ah       O     7.2.4
  3084. INQUIRY                            12h       M     7.2.5
  3085. LOCK UNLOCK CACHE                  36h       O     8.2.2
  3086. LOG SELECT                         4Ch       O     7.2.6
  3087. LOG SENSE                          4Dh       O     7.2.7
  3088. MEDIUM SCAN                        38h       O    15.2.3
  3089. MODE SELECT(6)                     15h       O     7.2.8
  3090. MODE SELECT(10)                    55h       O     7.2.9
  3091. MODE SENSE(6)                      1Ah       O     7.2.10
  3092. MODE SENSE(10)                     5Ah       O     7.2.11
  3093. PRE-FETCH                          34h       O     8.2.3
  3094. PREVENT ALLOW MEDIUM REMOVAL       1Eh       O     8.2.4
  3095. READ(6)                            08h       O     8.2.5
  3096. READ(10)                           28h       M     8.2.6
  3097. READ(12)                           A8h       O    15.2.4
  3098. READ BUFFER                        3Ch       O     7.2.12
  3099. READ CAPACITY                      25h       M     8.2.7
  3100. READ LONG                          3Eh       O     8.2.9
  3101. REASSIGN BLOCKS                    07h       O     8.2.10
  3102. RECEIVE DIAGNOSTIC RESULTS         1Ch       O     7.2.13
  3103. RELEASE (6)                        17h       M     8.2.11
  3104. RELEASE (10)                       57h       MP    8.2.11
  3105. REQUEST SENSE                      03h       M     7.2.14
  3106. RESERVE (6)                        16h       M     8.2.12
  3107. RESERVE (10)                       56h       MP    8.2.12
  3108. REZERO UNIT                        01h       O     8.2.13
  3109. ==============================================================================
  3110.  
  3111.                 Table 12-2: Commands for Write-Once Devices(2)
  3112.  
  3113. ==============================================================================
  3114. Command Name                       Code    Type    Section
  3115. ------------------------------------------------------------------------------
  3116. SEARCH DATA EQUAL(10)              31h       O     8.2.14.1
  3117. SEARCH DATA EQUAL(12)              B1h       O    15.2.8
  3118. SEARCH DATA HIGH(10)               30h       O     8.2.14.2
  3119. SEARCH DATA HIGH(12)               B0h       O    15.2.8
  3120. SEARCH DATA LOW(10)                32h       O     8.2.14.3
  3121. SEARCH DATA LOW(12)                B2h       O    15.2.8
  3122. SEEK(6)                            0Bh       O     8.2.15
  3123. SEEK(10)                           2Bh       O     8.2.15
  3124. SEND DIAGNOSTIC                    1Dh       M     7.2.15
  3125. SET LIMITS(10)                     33h       O     8.2.16
  3126. SET LIMITS(12)                     B3h       O    15.2.9
  3127. START STOP UNIT                    1Bh       O     8.2.17
  3128. SYNCHRONIZE CACHE                  35h       O     8.2.18
  3129. TEST UNIT READY                    00h       M     7.2.16
  3130. VERIFY(10)                         2Fh       O    15.2.11
  3131. VERIFY(12)                         AFh       O    15.2.12
  3132. WRITE(6)                           0Ah       O     8.2.20
  3133. WRITE(10)                          2Ah       M     8.2.21
  3134. WRITE(12)                          AAh       O    15.2.14
  3135. WRITE AND VERIFY(10)               2Eh       O     8.2.22
  3136. WRITE AND VERIFY(12)               AEh       O    15.2.16
  3137. WRITE BUFFER                       3Bh       O     7.2.17
  3138. WRITE LONG                         3Fh       O     8.2.23
  3139. ==============================================================================
  3140.  
  3141.     Key: M  =  Command implementation is mandatory.
  3142.          MP =  Command implementation is mandatory on any device that addresses
  3143.                more than 8 devices.
  3144.          O  =  Command implementation is optional.
  3145.  
  3146.   The following command codes are vendor specific:  02h, 05h, 06h, 09h, 0Ch,
  3147. 0Dh, 0Eh, 0Fh, 10h, 11h, 13h, 14h, 19h, 20h, 21h, 22h, 23h, 24h, 26h, 27h,
  3148. 29h, and C0h through FFh.  All remaining command codes for write-once devices
  3149. are reserved for future standardization.
  3150.  
  3151. 13. CD-ROM Devices
  3152.  
  3153. 13.2. Commands for CD-ROM Devices
  3154.  
  3155.   The commands for CD-ROM devices shall be as shown in Table 13-3, and 13-4.
  3156.  
  3157.                   Table 13-3: Commands for CD-ROM Devices(1)
  3158.  
  3159. ==============================================================================
  3160.                                 Operation
  3161. Command Name                       Code   Type    Section
  3162. ------------------------------------------------------------------------------
  3163. CHANGE DEFINITION                  40h      O      7.2.1
  3164. COMPARE                            39h      O      7.2.2
  3165. COPY                               18h      O      7.2.3
  3166. COPY AND VERIFY                    3Ah      O      7.2.4
  3167. INQUIRY                            12h      M      7.2.5
  3168. LOCK/UNLOCK CACHE                  36h      O      8.2.2
  3169. LOG SELECT                         4Ch      O      7.2.6
  3170. LOG SENSE                          4Dh      O      7.2.7
  3171. MODE SELECT(6)                     15h      O      7.2.8
  3172. MODE SELECT(10)                    55h      O      7.2.9
  3173. MODE SENSE(6)                      1Ah      O      7.2.10
  3174. MODE SENSE(10)                     5Ah      O      7.2.11
  3175. PAUSE/RESUME                       4Bh      O     13.2.1
  3176. PLAY AUDIO(10)                     45h      O*    13.2.2
  3177. PLAY AUDIO(12)                     A5h      O*    13.2.3
  3178. PLAY AUDIO MSF                     47h      O*    13.2.4
  3179. PLAY AUDIO TRACK/INDEX             48h      O*    13.2.5
  3180. PLAY TRACK RELATIVE(10)            49h      O*    13.2.6
  3181. PLAY TRACK RELATIVE(12)            A9h      O*    13.2.7
  3182. PRE-FETCH                          34h      O      8.2.3
  3183. PREVENT/ALLOW MEDIUM REMOVAL       1Eh      O      8.2.4
  3184. READ(6)                            08h      O      8.2.5
  3185. READ(10)                           28h      M      8.2.6
  3186. READ(12)                           A8h      O     15.2.4
  3187. READ BUFFER                        3Ch      O      7.2.12
  3188. READ CD-ROM CAPACITY               25h      M     13.2.8
  3189. READ HEADER                        44h      O     13.2.9
  3190. READ LONG                          3Eh      O      8.2.9
  3191. READ SUB-CHANNEL                   42h      O     13.2.10
  3192. READ TOC                           43h      O     13.2.11
  3193. RECEIVE DIAGNOSTIC RESULTS         1Ch      O      7.2.13
  3194. RELEASE (6)                        17h      M      8.2.11
  3195. RELEASE (10)                       57h      MP     8.2.11
  3196. REQUEST SENSE                      03h      M      7.2.14
  3197. RESERVE (6)                        16h      M      8.2.12
  3198. RESERVE (10)                       56h      MP     8.2.12
  3199. REZERO UNIT                        01h      O      8.2.13
  3200. ==============================================================================
  3201.  
  3202.   Key: M  =  Command implementation is mandatory.
  3203.        MP =  Command implementation is mandatory on any device that addresses
  3204.              more than 8 devices.
  3205.        O  =  Command implementation is optional.
  3206.        *  =  If any of the PLAY AUDIO commands (as indicated by an * in the
  3207.            'Type' column in Table 13-3) are implemented, the PLAY AUDIO
  3208.            command shall be implemented by the target.
  3209.  
  3210.                   Table 13-4: Commands for CD-ROM Devices(2)
  3211.  
  3212. ==============================================================================
  3213.                                 Operation
  3214. Command Name                       Code   Type    Section
  3215. ------------------------------------------------------------------------------
  3216. SEARCH DATA EQUAL(10)              31h      O      8.2.14.1
  3217. SEARCH DATA EQUAL(12)              B1h      O     15.2.8
  3218. SEARCH DATA HIGH(10)               30h      O      8.2.14.2
  3219. SEARCH DATA HIGH(12)               B0h      O     15.2.8
  3220. SEARCH DATA LOW(10)                32h      O      8.2.14.3
  3221. SEARCH DATA LOW(12)                B2h      O     15.2.8
  3222. SEEK(6)                            0Bh      O      8.2.15
  3223. SEEK(10)                           2Bh      O      8.2.15
  3224. SEND DIAGNOSTIC                    1Dh      M      7.2.15
  3225. SET LIMITS(10)                     33h      O      8.2.16
  3226. SET LIMITS(12)                     B3h      O     15.2.9
  3227. START STOP UNIT                    1Bh      O      8.2.17
  3228. SYNCHRONIZE CACHE                  35h      O      8.2.18
  3229. TEST UNIT READY                    00h      M      7.2.16
  3230. VERIFY(10)                         2Fh      O     15.2.11
  3231. VERIFY(12)                         AFh      O     15.2.12
  3232. WRITE BUFFER                       3Bh      O      7.2.17
  3233. ==============================================================================
  3234.  
  3235.   Key: M  =  Command implementation is mandatory.
  3236.        MP =  Command implementation is mandatory on any device that addresses
  3237.              more than 8 devices.
  3238.        O  =  Command implementation is optional.
  3239.  
  3240.  
  3241.   The following command codes are vendor specific:  02h, 05h, 06h, 09h, 0Ch,
  3242. 0Dh, 0Eh, 0Fh, 10h, 11h, 13h, 14h, 19h, 20h, 21h, 22h, 23h, 24h, 26h, 27h,
  3243. 29h, and C0h through FFh.  All remaining command codes for CD-ROM devices are
  3244. reserved for future standardization.
  3245.  
  3246. 14. Scanner Devices
  3247.  
  3248. 14.2. Commands for Scanner Devices
  3249.  
  3250.   The commands for scanner devices shall be as shown in Table 14-1.
  3251.  
  3252.                    Table 14-1: Commands for Scanner Devices
  3253.  
  3254. ==============================================================================
  3255.                                 Operation
  3256. Command Name                       Code   Type    Section     Page
  3257. ------------------------------------------------------------------------------
  3258. CHANGE DEFINITION                  40h      O      7.2.1
  3259. COMPARE                            39h      O      7.2.2
  3260. COPY                               18h      O      7.2.3
  3261. COPY AND VERIFY                    3Ah      O      7.2.4
  3262. GET DATA BUFFER STATUS             34h      O     14.2.1
  3263. GET WINDOW                         25h      O     14.2.2
  3264. INQUIRY                            12h      M      7.2.5
  3265. LOG SELECT                         4Ch      O      7.2.6
  3266. LOG SENSE                          4Dh      O      7.2.7
  3267. MODE SELECT(6)                     15h      O      7.2.8
  3268. MODE SELECT(10)                    55h      O      7.2.9
  3269. MODE SENSE(6)                      1Ah      O      7.2.10
  3270. MODE SENSE(10)                     5Ah      O      7.2.11
  3271. OBJECT POSITION                    31h      O     14.2.3
  3272. READ                               28h      M     14.2.4
  3273. READ BUFFER                        3Ch      O      7.2.12
  3274. RECEIVE DIAGNOSTIC RESULTS         1Ch      O      7.2.13
  3275. RELEASE UNIT (6)                   17h      M      9.2.9
  3276. RELEASE UNIT (10)                  57h      MP     9.2.9
  3277. REQUEST SENSE                      03h      M      7.2.14
  3278. RESERVE UNIT (6)                   16h      M      9.2.10
  3279. RESERVE UNIT (10)                  56h      MP     9.2.10
  3280. SCAN                               1Bh      O     14.2.5
  3281. SET WINDOW                         24h      M     14.2.6
  3282. SEND                               2Ah      O     14.2.7
  3283. SEND DIAGNOSTIC                    1Dh      M      7.2.15
  3284. TEST UNIT READY                    00h      M      7.2.16
  3285. WRITE BUFFER                       3Bh      O      7.2.17
  3286. ==============================================================================
  3287.  
  3288.  
  3289.   Key: M  =  Command implementation is mandatory.
  3290.        MP =  Command implementation is mandatory on any device that addresses
  3291.              more than 8 devices.
  3292.        O  =  Command implementation is optional.
  3293.  
  3294.   All other operation codes for scanner devices are  reserved for future
  3295. standardization.
  3296.  
  3297.  
  3298. 15. Optical Memory Devices
  3299.  
  3300. 15.2. Commands for Optical Memory Devices
  3301.  
  3302.   The commands for optical memory devices shall be as shown in Table 15-1 and
  3303. 15-2.
  3304.  
  3305.               Table 15-1: Commands for Optical Memory Devices(1)
  3306.  
  3307. ==============================================================================
  3308.                                 Operation
  3309. Command Name                       Code   Type    Section     Page
  3310. ------------------------------------------------------------------------------
  3311. CHANGE DEFINITION                  40h      O      7.2.1
  3312. COMPARE                            39h      O      7.2.2
  3313. COPY                               18h      O      7.2.3
  3314. COPY AND VERIFY                    3Ah      O      7.2.4
  3315. ERASE(10)                          2Ch      O     15.2.1
  3316. ERASE(12)                          ACh      O     15.2.2
  3317. FORMAT UNIT                        04h      O      8.2.1
  3318. INQUIRY                            12h      M      7.2.5
  3319. LOCK UNLOCK CACHE                  36h      O      8.2.2
  3320. LOG SELECT                         4Ch      O      7.2.6
  3321. LOG SENSE                          4Dh      O      7.2.7
  3322. MEDIUM SCAN                        38h      O     15.2.3
  3323. MODE SELECT(6)                     15h      O      7.2.8
  3324. MODE SELECT(10)                    55h      O      7.2.9
  3325. MODE SENSE(6)                      1Ah      O      7.2.10
  3326. MODE SENSE(10)                     5Ah      O      7.2.11
  3327. PRE-FETCH                          34h      O      8.2.3
  3328. PREVENT ALLOW MEDIUM REMOVAL       1Eh      O      8.2.4
  3329. READ(6)                            08h      O      8.2.5
  3330. READ(10)                           28h      M      8.2.6
  3331. READ(12)                           A8h      O     15.2.4
  3332. READ BUFFER                        3Ch      O      7.2.12
  3333. READ CAPACITY                      25h      M      8.2.7
  3334. READ DEFECT DATA(10)               37h      O      8.2.8
  3335. READ DEFECT DATA(12)               B7h      O     15.2.5
  3336. READ GENERATION                    29h      O     15.2.6
  3337. READ LONG                          3Eh      O      8.2.9
  3338. READ UPDATED BLOCK                 2Dh      O     15.2.7
  3339. REASSIGN BLOCKS                    07h      O      8.2.10
  3340. RECEIVE DIAGNOSTIC RESULTS         1Ch      O      7.2.13
  3341. RELEASE (6)                        17h      M      8.2.11
  3342. RELEASE (10)                       57h      MP     8.2.11
  3343. REQUEST SENSE                      03h      M      7.2.14
  3344. RESERVE (6)                        16h      MP     8.2.12
  3345. RESERVE (10)                       56h      M      8.2.12
  3346. REZERO UNIT                        01h      O      8.2.13
  3347. =============================================================================
  3348.  
  3349.               Table 15-2: Commands for Optical Memory Devices(2) 
  3350.  
  3351. ==============================================================================
  3352.                                 Operation
  3353. Command Name                       Code   Type    Section     Page
  3354. ------------------------------------------------------------------------------
  3355. SEARCH DATA EQUAL(10)              31h      O      8.2.14.1
  3356. SEARCH DATA EQUAL(12)              B1h      O     15.2.8
  3357. SEARCH DATA HIGH(10)               30h      O      8.2.14.2
  3358. SEARCH DATA HIGH(12)               B0h      O     15.2.8
  3359. SEARCH DATA LOW(10)                32h      O      8.2.14.3
  3360. SEARCH DATA LOW(12)                B2h      O     15.2.8
  3361. SEEK(6)                            0Bh      O      8.2.15
  3362. SEEK(10)                           2Bh      O      8.2.15
  3363. SEND DIAGNOSTIC                    1Dh      M      7.2.15
  3364. SET LIMITS(10)                     33h      O      8.2.16
  3365. SET LIMITS(12)                     B3h      O     15.2.9
  3366. START STOP UNIT                    1Bh      O      8.2.17
  3367. SYNCHRONIZE CACHE                  35h      O      8.2.18
  3368. TEST UNIT READY                    00h      M      7.2.16
  3369. UPDATE BLOCK                       3Dh      O     15.2.10
  3370. VERIFY(10)                         2Fh      O     15.2.11
  3371. VERIFY(12)                         AFh      O     15.2.12
  3372. WRITE(6)                           0Ah      O      8.2.20
  3373. WRITE(10)                          2Ah      M     15.2.13
  3374. WRITE(12)                          AAh      O     15.2.14
  3375. WRITE AND VERIFY(10)               2Eh      O     15.2.15
  3376. WRITE AND VERIFY(12)               AEh      O     15.2.16
  3377. WRITE BUFFER                       3Bh      O      7.2.17
  3378. WRITE LONG                         3Fh      O      8.2.23
  3379. =============================================================================
  3380.  
  3381.   Key: M  =  Command implementation is mandatory.
  3382.        MP =  Command implementation is mandatory on any device that addresses
  3383.              more than 8 devices.
  3384.        O  =  Command implementation is optional.
  3385.  
  3386.   The following codes are vendor specific: 20h, 21h, 22h, 23h, and C0h through
  3387. FFh.  All remaining codes for optical memory devices are reserved for future
  3388. standardization.
  3389.  
  3390. 16. Medium Changer Devices
  3391.  
  3392. 16.2. Commands for Medium Changer Devices
  3393.  
  3394.   The commands for medium changer devices shall be as shown in Table 16-2.
  3395.  
  3396.                Table 16-2: Commands for Medium Changer Devices
  3397.  
  3398. ==============================================================================
  3399.                                 Operation
  3400. Command Name                      Code     Type   Section
  3401. ------------------------------------------------------------------------------
  3402. CHANGE DEFINITION                  40h      O       7.2.1
  3403. EXCHANGE MEDIUM                    A6h      O      16.2.1
  3404. INITIALIZE ELEMENT STATUS          07h      O      16.2.2
  3405. INQUIRY                            12h      M       7.2.5
  3406. LOG SELECT                         4Ch      O       7.2.6
  3407. LOG SENSE                          4Dh      O       7.2.7
  3408. MODE SELECT(6)                     15h      O       7.2.8
  3409. MODE SELECT(10)                    55h      O       7.2.9
  3410. MODE SENSE(6)                      1Ah      O       7.2.10
  3411. MODE SENSE(10)                     5Ah      O       7.2.11
  3412. MOVE MEDIUM                        A5h      M      16.2.3
  3413. POSITION TO ELEMENT                2Bh      O      16.2.4
  3414. PREVENT ALLOW MEDIUM REMOVAL       1Eh      O       8.2.4
  3415. READ BUFFER                        3Ch      O       7.2.12
  3416. READ ELEMENT STATUS                B8h      O      16.2.5
  3417. RECEIVE DIAGNOSTIC RESULTS         1Ch      O       7.2.13
  3418. RELEASE (6)                        17h      O      16.2.6
  3419. RELEASE (10)                       57h      O      16.2.6
  3420. REQUEST VOLUME ELEMENT ADDRESS     B5h      O      16.2.7
  3421. REQUEST SENSE                      03h      M       7.2.14
  3422. RESERVE (6)                        16h      O      16.2.8
  3423. RESERVE (10)                       56h      O      16.2.8
  3424. REZERO UNIT                        01h      O       8.2.13
  3425. SEND DIAGNOSTIC                    1Dh      M       7.2.15
  3426. SEND VOLUME TAG                    B6h      O      16.2.9
  3427. TEST UNIT READY                    00h      M       7.2.16
  3428. WRITE BUFFER                       3Bh      O       7.2.17
  3429. ==============================================================================
  3430.  
  3431.   Key: M  =  Command implementation is mandatory.
  3432.        MP =  Command implementation is mandatory on any device that addresses
  3433.              more than 8 devices.
  3434.        O  =  Command implementation is optional.
  3435.  
  3436.   Operation codes C0h through FFh are vendor specific.  All other operation
  3437. codes are reserved.
  3438.